时间:2021-07-01 10:21:17 帮助过:6人阅读
<html>
<head>
</head>
<body>
<form name="form1">
<input type="hidden" name="page1" class="flau_u_ro" value="1"></input>
<input type="hidden" name="pageno" value="1"></input>
<input name="pagename" value=""></input>
<select name='pageflag'>
<option value='1' >是</option>
<option value='0' selected='selected'>否</option>
</select>
</form>
</body>
<script text="text/javascript" src="jquery-1.8.2.js"></script>
</html>
序列化代码:
代码如下:输出:
$("form[name='form1']").not($("input[type='hidden']"))
.not($("input[class='flau_u_ro']")).serialize();
chrome下控制台运行代码,
"page1=1&pageno=1&pagename=&pageflag=0"