• 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>

  • 相关阅读:
    innodb buffer pool小解
    information_schema系列十一
    Shader编程教程
    第四章 继承
    第三章 对象和类型
    第二章:核心C#
    前言和第一章.NET的体系结构
    单例模式
    代理模式
    第 1 章 策略模式【Strategy Pattern】
  • 原文地址:https://www.cnblogs.com/handboy/p/7163995.html
Copyright © 2020-2023  润新知