[JavaScript]验证URL的函数
1
function checkfile(file)
2
{
3
var checkfiles=new RegExp("((^http)|(^https)|(^ftp)):\/\/(\\w)+\.(\\w)+");
4
return checkfiles.test(file);
5
}
6
7
function checkfile(file)2
{ 3
var checkfiles=new RegExp("((^http)|(^https)|(^ftp)):\/\/(\\w)+\.(\\w)+");4
return checkfiles.test(file);5
} 6

7



浙公网安备 33010602011771号