代码改变世界

cordova添加plugin的多种方式

2019-06-27 17:10  假面Wilson  阅读(3069)  评论(0编辑  收藏  举报
#在线安装
cordova create chankoujie com.example.chankoujie ChanKouJie
cordova plugin add cordova-plugin-device 
cordova plugin add cordova-plugin-camera 
cordova plugin add cordova-plugin-file-transfer 
cordova plugin add cordova-plugin-splashscreen 
cordova plugin add cordova-plugin-dialogs 
cordova plugin add cordova-plugin-network-information 
cordova plugin add cordova-plugin-themeablebrowser

cordova plugin add https://github.com/Telerik-Verified-Plugins/SocialSharing
cordova plugin add https://github.com/moderna/cordova-plugin-cache.git
cordova plugin add https://github.com/DoubleSpout/phonegap_baidu_sdk_location.git


#离线安装
#安装web-cache 插件
mkdir cordova_plugins
cd cordova_plugins\
git clone https://github.com/moderna/cordova-plugin-cache.git
cd ..\chankoujie
cordova plugin add D:\github\cordova_apps\cordova_plugins\cordova-plugin-cache

#安装百度定插件
cd cordova_plugins\
git clone https://github.com/DoubleSpout/phonegap_baidu_sdk_location.git
cd ..\chankoujie
cordova plugin add D:\github\cordova_apps\cordova_plugins\phonegap_baidu_sdk_location