1 验证URL:var ptn= http: ([ w-]+ )+[ w-]+( [ w- ?%&=]*)? ;if(ptn exec
1.验证URL:
var ptn=/http:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/;
if(ptn.exec(str)) 怎样怎样!
var ptn=/http:\/\/([\w-]+\.)+[\w-]+(\/[\w- .\/?%&=]*)?/;
if(ptn.exec(str)) 怎样怎样!