|
$scope.test = function (){
// start image capture
var options = {
maximumImagesCount: 10,
width: 100,
height: 100,
quality: 80
};
$cordovaImagePicker.getPictures(options)
.then(function (results) {
for (var i = 0; i < results.length; i++) {
console.log('Image URI: ' + results);
}
}, function(error) {
// error getting photos
});
}
就是这样的 页面绑定了个ng-click="test()" imagepicker 插件装好了的,module中 添加了['ngCordova'],
控制器中 添加了 $cordovaImagePicker PC上用phonegap serve 启动的项目 在ios 手机的phonegap developer上测试的 请问你是Android或ios打包后再测试的吗? |
|