摘要:
用ClientID来获取对象,把代码修改为: var txt= "<%=txtSupplyer.ClientID%>"; var v = document.getElementById(txt).value; 阅读全文
摘要:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> 验证数字最简单正则表达式大全 </title> </head> <body> <h3&g 阅读全文
摘要:
function isIdCardNo(str,str2,str3){ var num= document.getElementById(str).value; var factorArr = new Array(7,9,10,5,8,4,2,1,6,3,7,9,10,5,8,4,2,1); var error; var varArray = new Array(); var intValue; var lngProduct = 0; var intCheckDigit; var intStrLen = num.length; var i... 阅读全文