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(); ...
阅读全文
摘要: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
阅读全文