饼子天空  
个人程序Blogs

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

posted on 2011-07-12 13:22  饼子天空  阅读(5567)  评论(0编辑  收藏  举报