我正在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)
它阻止了我的应用.任何人都可以建议如何解决这个问题?
我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有价值.我如何获得我的对象值?