摘要:
indexOf()方法 注意:indexOf() 方法对大小写敏感! 注意:如果要检索的字符串值没有出现,则该方法返回 -1。 stringObject.indexOf(searchvalue,formindex) indexOf() 方法可返回某个指定的字符串值在字符串中首次出现的位置。 阅读全文
posted @ 2016-11-17 14:22
junjunzhou
阅读(374)
评论(0)
推荐(0)
摘要:
function is_wexin(){ var ua = navigator.userAgent.toLowerCase(); if(ua.match(/MicroMessenger/i) == "micromessenger"){ return true; } else{ return fals 阅读全文
posted @ 2016-11-17 14:00
junjunzhou
阅读(344)
评论(0)
推荐(0)
摘要:
window.location.host; //返回url 的主机部分,例如:www.xxx.com window.location.hostname; //返回www.xxx.com window.location.href; //返回整个url字符串(在浏览器中就是完整的地址栏),例如:www. 阅读全文
posted @ 2016-11-17 12:38
junjunzhou
阅读(339)
评论(0)
推荐(0)

浙公网安备 33010602011771号