摘要:
function replacestr(str)dim reset re=new regexpre.ignorecase=truere.global=truere.pattern="\D"str=re.replace(str,"")replacestr=strset re=nothingend function 阅读全文
摘要:
<input onkeyup="value=value.replace(/[^\d]/g,'') "onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"> 阅读全文