|
开发快应用时,使用华为快应用加载器加载快应用,如果在ux文件中引用this 、打印this会出现崩溃,联盟加载器不会出现崩溃。
示例代码:onInit() {
console.info("test THIS", this);
}
Crash 日志:
execJSTypeError: Converting circular structure to JSON
at JSON.stringify ()
at hbs:1:2629
at Array.map ()
at a (hbs:1:2531)
at Object.info (hbs:1:1149)
at Kr.onInit (hbs:408:13)
at hbs:3:40
at Array.forEach ()
at Kr.Hr [as $emit] (hbs:3:11)
at new Kr (hbs:3:1825)
|
|