请问creator的native怎么捕获全局错误

请问creator的native怎么捕获全局错误,就像在web下的window.onerror一样

试试

window.__errorHandler = function (err) {
};
2赞

谢谢2youyou2!