我需要检查一个字符串是否以http://
java脚本开头
我所拥有的是
if(!txt.match(/^http:/)) {} // this only works for http:
我需要让它为http://
有人可以提出解决方案吗?
我需要检查一个字符串是否以http://
java脚本开头
我所拥有的是
if(!txt.match(/^http:/)) {} // this only works for http:
我需要让它为http://
有人可以提出解决方案吗?