08 2013 档案

摘要:实时监听输入框值变化首先创建Jquery.fn扩展jQuery.fn.extend({ inputChange: function(callback){ if($.support.leadingWhitespace){ //if($.browser.msie){ this.bind('propertychange', function(e){ if(e.originalEvent.propertyName == 'value'){ $(this).keyup(); ... 阅读全文
posted @ 2013-08-23 14:25 Younger 阅读(242) 评论(0) 推荐(0) 编辑
摘要:function getUrlParm(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"), r = window.location.search.substr(1).match(reg); if (r != null) return unescape(r[2]); return null;}eg:http://www.abc.com/index?parname=1234567console.log(getUrlParm(par 阅读全文
posted @ 2013-08-07 13:18 Younger 阅读(312) 评论(0) 推荐(0) 编辑