IE,URL中文读取

var _url = window.location.href;
if (_url.indexOf('keyword=') > 0  && navigator.userAgent.indexOf("MSIE") > 0) {
$('.tSearch').val(_url.substring(_url.indexOf('keyword=') + 8, _url.length));
}

posted on 2014-03-05 16:46  都是脚本惹的祸  阅读(209)  评论(0编辑  收藏  举报

导航