2010年8月16日

JS验证URL

摘要: function isURL() { var strRegex = "^((https|http|ftp|rtsp|mms)://)?[a-z0-9A-Z]{3}\.[a-z0-9A-Z][a-z0-9A-Z]{0,61}?[a-z0-9A-Z]\.com|net|cn|cc (:s[0-9]{1-4})?/$"; var re = new RegExp(strRegex); if (re.tes... 阅读全文

posted @ 2010-08-16 15:50 ~~奔跑~~ 阅读(9442) 评论(1) 推荐(2)

导航