Update index.html

This commit is contained in:
xixu-me committed 2024-11-27 11:24:40 +08:00
1 parent e39b3ac3de
commit bc0b54eaa0
1 file changed
-27
-27
View File
@@ -63,32 +63,5 @@
</footer> </footer>
</div> </div>
<script src="script.js"></script> <script src="script.js"></script>
<script>
// 添加全局错误处理
window.onerror = function( msg, url, lineNo, columnNo, error) {
console.error('
"rror: '"+
m sg +
' "nURL: '"+
url +
'"nLine: '"+
l ineNo +
' "nColumn: '"+
c olumnNo +
' "nError object: '"+
J SON.stringify(error))
;
return false;
};
// 确保脚本加载完成
window.addEventListener('"oad'" function( ) {
if (typeof initialize === '"unction'" {
initialize();
} else {
console.error('"nitialize function not found'";
}
});
</script>
</body> </body>
</html> </html>