获得徽章 0
- 获取指定URL的参数值
// * @param url 指定的URL地址
// * @param name 参数名称
// * @return 参数值
function getUrlParam(url,name) {
var pattern = new RegExp("[?&]"+name+"\=([^&]+)", "g");
var matcher = pattern.exec(url);
var items = null;
if(null != matcher){
try{
items = decodeURIComponent(decodeURIComponent(matcher[1]));
}catch(e){
try{
items = decodeURIComponent(matcher[1]);
}catch(e){
items = matcher[1];
}
}
}
return items;
}
this.code = getUrlParam(window.location.href,"code")//code位url参数展开评论点赞 - 身份证验证
<input type="tel" class="form-control telephone_nub" placeholder="请输入" maxlength="20" onkeyup="value=value.replace(/[^\d\*]/g,'')" onblur="value=value.replace(/[^\d\*]/g,'')"/>展开评论点赞 - input验证
只能输入数字和‘-’
<input type="tel" class="form-control telephone_nub" placeholder="请输入" maxlength="20" onkeyup="value=value.replace(/[^\d\-]/g,'')" onblur="value=value.replace(/[^\d\-]/g,'')"/>展开评论点赞