jQuery调试之serialize()序列化弹窗

我们在表单开发时,可在前端使用jQueryserialize()方法序列化表单值,然后结合alert来弹窗调试

代码如下

alert($(formname).serialize()); //formname是表单名