Authored by 毕凯

统计脚本加载修改

@@ -32,9 +32,9 @@ var _hmt = _hmt || []; @@ -32,9 +32,9 @@ var _hmt = _hmt || [];
32 })(); 32 })();
33 } 33 }
34 if (window.addEventListener) { 34 if (window.addEventListener) {
35 - window.addEventListener(type, async_load, false); 35 + window.addEventListener('load', async_load, false);
36 } else if (window.attachEvent) { 36 } else if (window.attachEvent) {
37 - window.attachEvent("on" + type, async_load); 37 + window.attachEvent('onload', async_load);
38 } 38 }
39 })(); 39 })();
40 </script> 40 </script>