Sql $(document).ready(function(){ $(".dept").bind("click", function () { var self = this; var open = $(self).attr("open"); if (open=="false") { $(self).attr("open", "true"); } $.ajax({ type
1.jquery获取url很简单,代码如下 window.location.href; 2.javascript获取url参数 function getUrlParam(name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象 var r = window.location.search.substr(1).match(reg); /