domConstruct.create 不是函数
domConstruct.create is not a function
在我的 esri arcgis 小部件代码中 dom-construct.create() 出现以下错误。
at showResults (Widget.js?wab_dv=2.12:118)
at Object._successHandler (init.js:2313)
at Object._handler (init.js:2307)
at init.js:64
at init.js:2302
at c (init.js:104)
at e (init.js:104)
at n.DeferredList.resolve.callback (init.js:105)
at b (init.js:2311)
at init.js:2311 "TypeError: domConstruct.create is not a function
at showResults (https://lr90q4pzw:3344/webappbuilder/apps/7/widgets/DKMtest/Widget.js?wab_dv=2.12:118:36)
at Object._successHandler (https://js.arcgis.com/3.28/init.js:2313:478)
at Object._handler (https://js.arcgis.com/3.28/init.js:2307:424)
at https://js.arcgis.com/3.28/init.js:64:337
at https://js.arcgis.com/3.28/init.js:2302:184
at c (https://js.arcgis.com/3.28/init.js:104:350)
at e (https://js.arcgis.com/3.28/init.js:104:139)
at n.DeferredList.resolve.callback (https://js.arcgis.com/3.28/init.js:105:479)
at b (https://js.arcgis.com/3.28/init.js:2311:21)
at https://js.arcgis.com/3.28/init.js:2311:70 ```
无论何时使用 dojo/dom-construct 都会在 domConstruct.create() 处出现上述错误,因此请包含 'dojo/_base/html' 并且不会出现上述错误。
在我的 esri arcgis 小部件代码中 dom-construct.create() 出现以下错误。
at showResults (Widget.js?wab_dv=2.12:118)
at Object._successHandler (init.js:2313)
at Object._handler (init.js:2307)
at init.js:64
at init.js:2302
at c (init.js:104)
at e (init.js:104)
at n.DeferredList.resolve.callback (init.js:105)
at b (init.js:2311)
at init.js:2311 "TypeError: domConstruct.create is not a function
at showResults (https://lr90q4pzw:3344/webappbuilder/apps/7/widgets/DKMtest/Widget.js?wab_dv=2.12:118:36)
at Object._successHandler (https://js.arcgis.com/3.28/init.js:2313:478)
at Object._handler (https://js.arcgis.com/3.28/init.js:2307:424)
at https://js.arcgis.com/3.28/init.js:64:337
at https://js.arcgis.com/3.28/init.js:2302:184
at c (https://js.arcgis.com/3.28/init.js:104:350)
at e (https://js.arcgis.com/3.28/init.js:104:139)
at n.DeferredList.resolve.callback (https://js.arcgis.com/3.28/init.js:105:479)
at b (https://js.arcgis.com/3.28/init.js:2311:21)
at https://js.arcgis.com/3.28/init.js:2311:70 ```
无论何时使用 dojo/dom-construct 都会在 domConstruct.create() 处出现上述错误,因此请包含 'dojo/_base/html' 并且不会出现上述错误。