如何校验微博地址就是用户输入值后..我要判断他填写的前7个字符是不是 http:// 怎么写啊[解决办法]用正则。。。[解决办法]试试。
var aa='http://weibo.com'; if(aa.substr(0,7)=='http://') alert(true); else alert(false);