小编Esw*_*ddy的帖子

线程警告:['Camera']花了'290.006104'ms.插件应该使用后台线程

我正在Phonegap为IOS 构建一个应用程序.我用Cordova相机plugin进行个人资料图片上传.我的示例代码是:

navigator.camera.getPicture(that.imageDataSuccessCallback, that.imageDataErrorCallback, { quality: 10, destinationType: 1, encodingType: 0, allowEdit: true, correctOrientation: true, sourceType:0 });
Run Code Online (Sandbox Code Playgroud)

当我点击该特定按钮时,我收到警告

THREAD WARNING: ['Camera'] took '290.006104' ms. Plugin should use a background thread.
Run Code Online (Sandbox Code Playgroud)

它阻止了我的应用.任何人都可以建议如何解决这个问题?

camera ios phonegap-plugins cordova cordova-plugins

2
推荐指数
1
解决办法
4156
查看次数

angularjs ng-paste不更新模型值

ng-paste在textarea中粘贴链接时使用了textarea,我正在调用一个自定义函数来存储该值.请参考以下代码

<textarea rows="1" ng-model="myObj.content"
              ng-paste="getContent(myObj)">
 </textarea>

$scope.getContent = function(a){
    console.log(a.content);
}
Run Code Online (Sandbox Code Playgroud)

但在控制台总是我undefined有价值.我如何获得我的对象值?

angularjs angularjs-scope angularjs-ng-model

2
推荐指数
1
解决办法
6278
查看次数