zoukankan      html  css  js  c++  java
  • form快速转json serialize

    原文发布时间为:2011-03-28 —— 来源于本人的百度文章 [由搬家工具导入]

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        <script src="http://code.jquery.com/jquery-1.5.1.min.js" type="text/javascript"></script>
    </head>
    <body>
        <form id="form1">
        <div>
            <input type="text" value="2" name="testa" />
            <input type="text" value="2" name="testb" />
            <input type="text" value="2" name="testa" />
            <input type="text" value="2" name="testc" />
            <input type="text" value="2" name="testa" />
        </div>
        </form>
        <script type="text/javascript">
            alert($("#form1").serialize());
        </script>
    </body>
    </html>

  • 相关阅读:
    poj 3422 Kaka's Matrix Travels
    poj 1815 Friendship
    poj 1966 Cable TV Network
    黑暗
    【bzoj2741】[FOTILE模拟赛] L
    整数拆分
    LCIS
    原题的旅行
    【codeforces gym】Increasing Costs
    【noip模拟】D(==)
  • 原文地址:https://www.cnblogs.com/handboy/p/7163995.html
Copyright © 2011-2022 走看看