wazsq
wazsq
> require('natjs').camera.captureImage({}, (err, ret) => { this.turl_path = ret.path; }); 这是我的js代码,第一次触发这个事件的时候正常打开照相机,但是this.url获取不到,之后再触发这个事件,报如下错误。 > reportJSException >>>> instanceId:2, exception function:callJS, exception:Exception: TypeError: null is not an object (evaluating 't.path') (global function):5:828 (global function):5:2515...
第一次触发打开照相机权限还是可以的,第二次就报异常了 > 10-20 19:55:52.605 3783-3883/com.alibaba.weex D/weex: callJS >>>> instanceId:3function:callJS tasks:[{"data":"3","type":2},{"data":"[{\"args\":[\"124\",\"click\",{\"position\":{\"height\":65.625,\"width\":750,\"x\":0,\"y\":713.5417}},null],\"method\":\"fireEvent\"}]","type":3}] 10-20 19:55:52.609 3783-3883/com.alibaba.weex D/weex: [WXBridgeManager] callNativeModule >>>> instanceId:3, module:nat/camera, method:captureImage, arguments:[{},"3"] 10-20 19:55:52.617 3783-3883/com.alibaba.weex D/weex: callJS >>>> instanceId:3function:callJS tasks:[{"data":"3","type":2},{"data":"[{\"args\":[\"3\",{\"error\":{\"code\":120030,\"message\":\"CAMERA_BUSY\"}},false],\"method\":\"callback\"}]","type":3}] 10-20...