我在代码里写了window.onerror = function (msg, url, line, column, detail) {alert("传奇世界")}怎么不起效
经过试验:发现只有影响主线程卡死程序的报错会触发window.oneror,不会导致卡死的报错不会ch触发window.onerror