热门关键字:
分享原生JavaScript技巧大收集(41~50)

41、原生JavaScript完美判断是否为网址functionIsURL(strUrl){varregular=/^\b(((https?|ftp):\/\/)?[-a-z0-9]+(\.[-a-z0-9]+)*\.(?:com|edu|gov|int|mil|net|org|biz|info|name|museum|asia|coop|aero|[a-z][a-z]|((25[0-5...

3427
2013/8/4 15:09:13
0
View Details