var _hmt = _hmt || []; window._hmt = _hmt; // 修改为window全局变量 (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?4ccd0dd3f168771cb4670ddf5f5c4247"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s); })();