<form method="post" action="javascript:void(0);" οnsubmit="getElements()" id="freezhaobiao" class="signUpbox"> <ul class="signUp"> <li class="intro">title1</li> <li class="desTit">title2</li> <!--<li class="desType">类型:<input value="1" name="type" checked="checked" οnclick="$('.desTit').html('免费发布装修招标');" id="zxType1" type="radio"><label for="zxType1">免费设计</label>--> <!--<input value="2" name="type" id="zxType2" οnclick="$('.desTit').html('免费发布设计招标');" type="radio"><label for="zxType2">收费设计</label>--> <!--</li>--> <li><em>* </em>:<input type="text" class="price_sign" id="price" name="price" placeholder="请填写您的东西" /></li> <li><em>* </em>name:<input type="text" class="name_sign" id="chenghu" name="chenghu" placeholder="请填写您的名字"></li> <li><em>* </em>phone:<input type="text" class="tel_sign" id="phone" name="phone" placeholder="请填写您的联系方式"></li> </ul> </form> <script> function getElements() { var params = $('#freezhaobiao').serializeArray(); var values = {}; for( x in params ){ values[params[x].name] = params[x].value; } var idata = JSON.stringify(values) console.log(idata); } </script>