您的位置:首页 > 其它

活动目录系列之五:单域环境的实现(多站点)下--优化

2009-12-13 15:57 393 查看
js 代码

 

ajax的用法  

    $("#love").click(function() {  

         $.ajax({  

               type: "POST",  

               url: "/main?_action=list&s_qdb",  

               data: "name=John&location=Boston",  

               success: function(msg){  

                $("#mxbd").html(msg);    

               }  

             });  

    });  

*/  

  

/*循环一个对象数组的用法*/  

$("a").each(function(i){  

  this.href="/../www.baidu.com"  

});   

  

    });  

  /*绑定一个事件*/

    $("#guige").bind("change", function(){  

    var  gg=document.getElementById("guige").value;  

       $.ajax({  

               type: "POST",  

               url: "wz_cl_result.jsp",  

               data: "cltype=0&gg=" +  gg ,  

               success: function(msg){  

                $("#mxbd").html(msg);    

               }  

             });         

       

     //alert(document.getElementById("guige").value);  

          

  

  

  

    });  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: