摘要:
function num(obj){ obj.value = obj.value.replace(/[^\d.-]/g,""); //清除"数字"和"."以外的字符 obj.value = obj.value.replace(/^\./g,""); //验证第一个字符是.字 obj.value = obj.value.replace(/^[0]/g,"");//验证第一个字符是... 阅读全文
摘要:
function getUrl(name, url) { url = url || window.location.search; var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i"); var r = url.substr(1).match(reg); if (r != null) return (r[2]);... 阅读全文
摘要:
var data = [ {id:100000, name :"1", pid :0}, {id:100100, name :"1-1", pid :100000, }, {id:100101, name :"1-1-1", pid :100100, }, {id:200000, name :"2", pid :0, }, ... 阅读全文
摘要:
<ul> <li> <p>现居住地址:</p> <input name="address" id="address" class="input u10_inputlong" type="text" value=""> </li> <li> <p>手机号码:</p> <input onkeyup="v 阅读全文
摘要:
var arr=[ {a:12,b:10,c:3,d:15}, {a:8,b:9,c:9,d:15}, {a:1,b:5,c:12,d:55}, {a:8,b:9,c:9,d:11}, {a:10,b:10,c:3,d:5} ] var val={}; for (var i = 0; i arr[i][obj])... 阅读全文