|
|
发表于 2025-11-14 12:10:34
|
显示全部楼层
但是当我可选值脚本返回的是一个resolve了可选值数组的Promise对象的时候,用resetoption()会先报错:
VM11692:9 TypeError: this._setOptions is not a function
at Object.setOptions (<anonymous>:1:254629)
at i.extend.$owner (mootools-1.6.0_all.js:1399:1)
at Object.resetOption (<anonymous>:1:253033)
at i.extend.$owner (mootools-1.6.0_all.js:1399:1)
at MWF.Macro.scriptSpace.f_0 (<anonymous>:6:6)
at Object.exec (<anonymous>:1:64104)
at Object.fire (<anonymous>:1:65226)
at i.extend.$owner (mootools-1.6.0_all.js:1399:1)
at Object.<anonymous> (<anonymous>:1:233515)
at Object.<anonymous> (<anonymous>:1:193844)
MWF.Macro.scriptSpace.f_0 @ VM11692:9
然后才打印出我脚本里的接口返回值。为什么呢 |
|