我接管了AngularJS,Ionic和Cordova(插件)的项目。
由于另一个问题,我不得不更新我的基础设施(包括对XCode 7.2.1的更新),现在看起来如下:
npm list -g --depth = 0
├── bower@1.7.7
├── cordova@6.0.0
├── grunt-cli@0.1.13
├── grunt-sass@1.1.0
├── ionic@1.7.14
├── ios-deploy@1.8.5
├── ios-sim@5.0.6
├── n@2.1.0
├── to@0.2.9
└── update@0.4.2
npm list --depth = 0
├── cordova@6.0.0
├── grunt@0.4.5
├── grunt-angular-templates@0.5.9
├── grunt-autoprefixer@0.4.2
├── grunt-bump@0.3.4
├── grunt-cli@0.1.13 extraneous
├── grunt-concurrent@0.4.3
├── grunt-contrib-clean@0.5.0
├── grunt-contrib-concat@0.3.0
├── grunt-contrib-connect@0.5.0
├── grunt-contrib-copy@0.4.1
├── grunt-contrib-cssmin@0.7.0
├── grunt-contrib-htmlmin@0.1.3
├── grunt-contrib-jshint@0.7.2
├── grunt-contrib-uglify@0.2.7
├── grunt-contrib-watch@0.5.3
├── grunt-conventional-changelog@1.2.2
├── grunt-githooks@0.3.1
├── grunt-htmlhint@0.4.1
├── grunt-jscs@1.5.0
├── grunt-newer@0.6.1
├── grunt-ng-annotate@0.2.3
├── grunt-ng-constant@0.5.0
├── grunt-ngdocs@0.2.9
├── grunt-sass@1.1.0
├── grunt-usemin@2.0.2
├── grunt-wiredep@1.7.1
├── ionic@1.7.14
├── jshint-stylish@0.1.5
├── load-grunt-tasks@0.2.1
├── lodash@2.4.2
├── node-sass@3.4.2
└── time-grunt@0.2.10
npm ERR! extraneous: grunt-cli@0.1.13
cordova平台版
Installed platforms: android 4.1.1, ios 4.0.1
Available platforms: amazon-fireos, blackberry10, browser, firefoxos, osx, webos
cordova插件列表
cc.fovea.cordova.purchase 4.0.0 "Purchase"
cordova-plugin-console 1.0.2 "Console"
cordova-plugin-crosswalk-webview 1.5.0 "Crosswalk WebView Engine"
cordova-plugin-inappbrowser 1.2.1 "InAppBrowser"
cordova-plugin-splashscreen 3.1.0 "Splashscreen"
cordova-plugin-statusbar 2.1.2-dev "StatusBar"
ionic-plugin-keyboard 1.0.8 "Keyboard"
现在,当基于JavaScript跳转到“保存功能”时,应用程序停止并且模态对话框不再隐藏。以下是一些示例代码:
HTML
<div class="buttons">
<a class="button button-icon icon ion-checkmark-circled" ng-click="save()"></a>
</div>
的JavaScript
$scope.save = function ()
{
if ($scope.dosomething.length < 1)
{
$scope.$emit('toast', 'Do not do this!');
return;
}
}
知道如何解决这个问题吗?