摘要:
var userAgent = navigator.userAgent; //取得浏览器的userAgent字符串 var isOpera = userAgent.indexOf("Opera") > -1; //判断是否Opera浏览器 var isIE = userAgent.indexOf(" 阅读全文
摘要:
Number.prototype.mul = function (arg) { var m = 0, s1 = this.toString(), s2 = arg.toString(); try { m += s1.split('.')[1].length } catch (e) { } try { 阅读全文
摘要:
function GetAge(identityCard) { var len = (identityCard + "").length; if (len == 0) { return 0; } else { if ((len != 15) && (len != 18))//身份证号码只能为15位或 阅读全文