7,765
社区成员
发帖
与我相关
我的任务
分享
这个 是他页面 调用的js , 还有什么不懂?
<script>
var w = document.f.q;
function s(o) { if (w.value.length > 0) { var h = o.href; var q = encodeURIComponent(w.value);
if (h.indexOf("q=") != -1) { o.href = h.replace(new RegExp("q=[^&$]*"), "q=" + q) } else { o.href += "?q=" + q } } };
(function() { if (new RegExp("q=([^&]+)").test(location.search)) { w.value = decodeURIComponent(RegExp.$1) } })();
document.write('<script src=http://www.baidu.com/js/bdsug.js?v=1.1.0.3><\/script>')
window.onunload = function() {};
</script>