<div class="codetitle"> <span><a style="CURSOR: pointer" data="42708" class="copybut" id="copybut42708" onclick="doCopy('code42708')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code42708"> <br> <br> <br> <br> <br><form name="form1"> <br><input type="hidden" name="page1" class="flau_u_ro" value="1"> <br><input type="hidden" name="pageno" value="1"> <br><input name="pagename" value=""> <br><select name=" pageflag"> <br><option value="1">是</option> <br><option value="0" selected>否</option> <br></select> <br> </form> <br> <br><script text="text/javascript" src="jquery-1.8.2.js"></script> <br> <br> </div> <br>序列化程式碼: <br><div class="codetitle"> <span><a style="CURSOR: pointer" data="34423" class="copybut" id="copybut34423" onclick="doCopy('code34423')"><u>複製程式碼</u></a></span> 程式碼如下:</div> <div class="codebody" id="code34423"> <br> form[name='form1']").not($("input[type='hidden']")) <br>.not($("input[class='flau_u_ro']")).serialize( ); <br> </div> <br>chrome下控制台運行程式碼,輸出: <br><br>"page1=1&pageno=1&pagename=&pageflag=0"