• jQuery动态加载页面


    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title></title>
        <script type="text/javascript" src="Scripts/jquery-1.4.1-vsdoc.js"></script>
        <script type="text/javascript">
            $(document).ready(function () {
                var url = "aaa.aspx";
                $.get(url, {}, function (value) {
                    $("#TestID").html(value);
                });
            });
            function ChangeBB() {
                var url = "bb.htm";
                $.get(url, {}, function (data) {
                    $("#TestID").html(data);
                });
            }

            function ChangeAA() {
                var url = "aaa.aspx";
                $.get(url, {}, function (data) {
                    $("#TestID").html(data);
                });
            }
        </script>
    </head>
    <body>
        <form id="form1" runat="server">
        <div id="TestID">
        </div>
        <input type="button" onclick="ChangeBB()" value="BB" /><br />
        <input type="button" onclick="ChangeAA()" value="AA" /><br />
        </form>
    </body>
    </html>

  • 相关阅读:
    Dapper 基础用法
    测试的分类
    Python
    MySQL数据库的增删改查
    Python面向对象之
    Python面向对象之
    Python
    HTML5/CSS3/JS笔记
    Python-Flask框架之
    Python进程与线程
  • 原文地址:https://www.cnblogs.com/bingzisky/p/2104172.html
Copyright © 2020-2023  润新知