溪语
Less Is More

1.截取一个url中是否包含一段字符串:

  index = window.location.href.indexOf("固定的字符串"),如果index的值大于-1,则表示该字符串存在,索引的开始值为index的值

 

posted on 2018-01-11 17:05  溪语_8023  阅读(142)  评论(0编辑  收藏  举报