验证域名url地址function checkUrl(url) {
var strRegex = '^((https|http|ftp|rtsp|mms)?://)?'
+'(([0-9a-z_!~*().&=+$%-]+: )?[0-9a-z_!~*().&=+$%-]+@)?' //ftp的user@
+'(([0-9]{1,3}.){3}[0-9]{1,3}|'// IP形式的URL- 127.0.0.1
+'([0-9a-z_!~*()-]+.)*'// 域名- www.
+'[a...
软件开发
阅读(1122)
阅读全文