ellise
ellise
追踪代码如下: js/src/gcanvas.js中: GCanvas的start函数=》 ======= start: function (el, succ, fail) { GLog.d('gcanvas#start=====>>>'); //get device **GBridge.getDeviceInfo(function(e){**//这里是异步操作 if (e.data && e.data.platform == "iOS"){ GCanvasPlatform = 1; ...... } }) } ======== GBridge.**getDeviceInfo**( function(){...
Web版无法运行
week_sdk 0.16.0上运行,**weex.supports is not a function** 12-21 18:05:10.176 15263-15296/com.alibaba.weexTest E/weex: reportJSException >>>> instanceId:1, exception function:createInstance, exception:Exception: TypeError: weex.supports is not a function. (In 'weex.supports("@weex-module/userTrack")', 'weex.supports' is undefined) start@(global function):8:6552 ready@(global...
weex-chart插件安装之后node_modules消失原因: 经反复测试发现: weexpack plugin add weex-chart 刚执行完成,node_modules中本来是有weex-chart目录的。 但是很遗憾,当作任何npm操作,如: weexpack run android npm install 等等。。。。 node_modules下的weex-chart目录将立刻被删除 经查日志发现,原因如下: weex-chart目录下package.json中name为 **"name": "weex-plugin-weex-chart"** **weex-plugin-weex-chart**与目录名**weex-chart**不一致 根据NPM标准,两者不一致为无效包,所以NPM自己清理掉weex-chart 之后所有的连锁反应都来自此,望早日修复,谢谢 目前我的解决方法是,手动从plugins中拷贝到node_modules,然后package.json的name改为**weex-chart**, 可用
weex-toolkit v1.1.0-beta.7下 执行命令: weexpack platform add android 发现生成的platforms\android\下没有weexplugin目录 直接导致weekpack plugin add weex-chart失败 =========================== Failed to install 'weex-chart':Error: ENOENT: no such file or directory, open 'E:\weex\drgs\platforms\android\weexplugin\build.gradle' at Object.fs.openSync (fs.js:646:18) at Object.fs.readFileSync...