API小游戏应用级事件mgtv.offUnhandleRejection本页总览mgtv.offUnhandledRejection(function listener) 功能描述 移除未处理的 Promise 拒绝事件的监听函数 参数 function listener onUnhandledRejection 传入的监听函数。 示例代码 const listener = function (res) { console.log(res) }mgtv.onUnhandledRejection(listener)mgtv.offUnhandledRejection(listener) // 需传入与监听时相同的函数对象