测试代码:
// { "framework": "Vanilla" }
console.log(global);
console.log(sendTasks);
生成 QR code 后用 Playground 打开报错, 显示 sendTasks 未定义.
Uncaught ReferenceError: sendTasks is not defined
Weex SDK Version: 0.10.0,
JS Framework Version: 0.19.6,
platform: android,
osVersion: 6.0.1,
appVersion: 0.10.0,
deviceModel: MI 5,
deviceWidth: 1080,
deviceHeight: 1920
更新, 又不能重现了
我们主仓库
examples/vanilla里有个例子,里边用了sendTasks。把下边这个地址生成二维码扫一下试试能不能打开:可以把代码里 text 组件的 value 改成
Object.keys(global).join(', ')或者typeof sendTasks试一下。native 的 console 不好看出来。