|
- onReady() {
- try {
- const img = new Image()
- } catch (error) {
- console.log(error)
- }
- },
复制代码
控制台直接报错
- ReferenceError: Image is not defined
- at qe.onReady (eval at ../../../Program Files (:38657/sourcemap/x86)/Quickapp/resources/app/extensions/hap-debugger/node_modules.asar/@hap-toolkit/dsl-xvm/lib/loader/script-loader.js!../../../Program Files (x86)/Quickapp/resources/app/extensions/hap-debugger/node_modules.asar/@hap-toolkit/dsl-xvm/lib/loader/module-loader.js!./node_modules/babel-loader/lib/index.js?cwd=c:\work\c2h4_qapp\c2h4_qapp&cacheDirectory&plugins[]=c:\Program Files (x86)\Quickapp\resources\app\extensions\hap-debugger\node_modules.asar\@hap-toolkit\dsl-xvm\lib\loader\babel-plugin-jsx.js&comments=false!../../../Program Files (x86)/Quickapp/resources/app/extensions/hap-debugger/node_modules.asar/@hap-toolkit/dsl-xvm/lib/loader/access-loader.js!../../../Program Files (x86)/Quickapp/resources/app/extensions/hap-debugger/node_modules.asar/@hap-toolkit/dsl-xvm/lib/loader/fragment-loader.js?index=0&type=script!./src/Demo/index.ux?uxType=page (Demo/index.js:121:1), <anonymous>:32:18)
- at n.forEach.e (<anonymous>:1:31732)
- at Array.forEach (<anonymous>)
- at qe.$emit (<anonymous>:1:31711)
- at new qe (<anonymous>:1:30511)
- at Je (<anonymous>:1:38971)
- at i (<anonymous>:1:41603)
- at eval (index.ux?1bf8:14)
- at Object../src/Demo/index.ux?uxType=page (Demo/index.js:132)
- at __webpack_require__ (Demo/index.js:23)
复制代码 |
|