08 2015 档案

Input 值改变触发事件
摘要:$('#keyword').bind('input propertychange', function() { $('.close-search').show();}); 阅读全文
posted @ 2015-08-21 10:46 以为是帅哥 阅读(598) 评论(0) 推荐(0)
滚动条回到最上面
摘要:function myScroll() {//前边是获取chrome等一般浏览器 如果获取不到就是ie了 就用ie的办法获取 var x=document.body.scrollTop||document.documentElement.scrollTop; va... 阅读全文
posted @ 2015-08-20 17:06 以为是帅哥 阅读(798) 评论(0) 推荐(0)
前端获取url参数
摘要:function GetQueryString(name){ var reg = new RegExp("(^|&)"+ name +"=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if(... 阅读全文
posted @ 2015-08-18 18:48 以为是帅哥 阅读(662) 评论(0) 推荐(0)
cookie 路径问题
摘要:Path – 路径。指定与cookie关联的WEB页。值可以是一个目录,或者是一个路径。如果http://www.zdnet.com/devhead /index.html 建立了一个cookie,那么在http://www.zdnet.com/devhead/目录里的所有页面,以及该目录下面任何子... 阅读全文
posted @ 2015-08-17 14:47 以为是帅哥 阅读(262) 评论(0) 推荐(0)
ajax转换成json参数
摘要://提交表单 $('#submit').click(function(){ var datas = $("#iform").serializeJson(); datas.action='chaxun'; $.ajax({... 阅读全文
posted @ 2015-08-04 15:38 以为是帅哥 阅读(1160) 评论(0) 推荐(0)