摘要: 1、使用indexOf(""); var newStr=str.indexOf("http"); if(newStr==0){ console.log("字符串是以http开头的!") } if(newStr 1){ console.log("字符串不是以http开头的!") } 2、substri 阅读全文
posted @ 2017-03-31 15:41 Mr...L 阅读(7322) 评论(0) 推荐(0)