[摘要]// a slash isnt required if there is no file name+ (/[0-9a-z_!~*\().;?:@&=+$,%#-]+)+/?)$;var re...
' // a slash isn't required if there is no file name
+ '(/[0-9a-z_!~*\'().;?:@&=+$,%#-]+)+/?)$';
var re=new RegExp(strRegex);
//re.test()
if (re.test(str_url)) {
return (true);
} else {
return (false);
}
}
……