[Cordova] installed plugin
The following dialog plugin to an example:
If a general alert enough, you can use dialog plugin
navigator.notification.alert(message, alertCallback, [title], [buttonName])
message:. the message to be displayed (String)
alertCallback: To perform a complete re-perform other Function, function name can be located here in the dialog. . (Function)
title: window title (String) (Optional, defaults to Alert).
buttonName: Button Name (String) (Optional, defaults to OK).
To advance to the data item is the installation folder, under the installation, for example, there is a hello project, open cmd, and then into the hello project under command to perform the installation.
Install plugin
$ cordova plugin add org.apache.cordova.dialogs
$ cordova plugin add org.apache.cordova.vibration
Or
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-dialogs.git
cordova plugin add https://git-wip-us.apache.org/repos/asf/cordova-plugin-vibration.git
Show what is currently installed plugin
$ Cordova plugin LS
[ 'org.apache.cordova.dialogs',
'org.apache.cordova.vibration']
移除plugin
$ cordova plugin rm org.apache.cordova.dialogs
$ cordova plugin rm org.apache.cordova.vibration
dialog plugin's official website for more information:
http://docs.phonegap.com/en/edge/cordova_notification_notification.md.html#notification.alert
Original: Large column [Cordova] install plugin