摘要: $(function(){ $('#search').click(function(){ if($(".search_div").is(":visible")) $(".search_div").hide(); else $(".search_div").show(); }); $(".search 阅读全文
posted @ 2016-03-01 09:54 向阳的影子 阅读(453) 评论(0) 推荐(0) 编辑
摘要: 用户控件页面后台: public string P_Name { get { return txt_P_name.Value; } set { txt_P_name.Value = value; } } Web页面后台: if (head.P_Name != "") { strwhere += " 阅读全文
posted @ 2016-02-29 18:11 向阳的影子 阅读(188) 评论(0) 推荐(0) 编辑
摘要: 方法一:采用正则表达式获取地址栏参数:( 强烈推荐,既实用又方便!) function GetQueryString(name) { var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.searc 阅读全文
posted @ 2016-02-17 11:44 向阳的影子 阅读(214) 评论(0) 推荐(0) 编辑
摘要: cache的作用就是第一次请求完毕之后,如果再次去请求,可以直接从缓存里面读取而不是再到服务器端读取。如果使用jquery,可以使用 cache参数来控制$.ajax({ url: "test.html", cache: false, //或者设置true success: function(htm 阅读全文
posted @ 2016-01-29 09:35 向阳的影子 阅读(666) 评论(0) 推荐(0) 编辑