摘要: Date.prototype.format = function (format) { var o = { "M+": this.getMonth() + 1, //month "d+": this.getDate(), //day ... 阅读全文
posted @ 2014-10-28 13:53 代码啦 阅读(1421) 评论(0) 推荐(0)
摘要: /*用途:校验ip地址的格式 输入:strIP:ip地址 返回:如果通过验证返回true,否则返回false; */function isIP(strIP) { if (isNull(strIP)) return false; var re = /^(\d+)\.(\d+)\.(\d+)... 阅读全文
posted @ 2014-10-28 11:41 代码啦 阅读(248) 评论(0) 推荐(0)