简体   繁体   English

我可以手动添加cordova插件吗?

[英]Can I add a cordova plugin manually?

I want to utilize this plugin in my phonegap/jquery-m application. 我想在我的phonegap / jquery-m应用程序中使用插件。 Do I have to use the "install" method or can I simply download the js file and make a reference to it and the cordova.js file? 我是否必须使用“安装”方法,还是可以简单地下载js文件并对其进行引用以及cordova.js文件?

I would rather like to just refer to the js file, because it will be much easier. 我只想引用js文件,因为它会容易得多。

Thanks. 谢谢。

You can add this javascript plugin manually, refer shake.js in html. 您可以手动添加此javascript插件,请参考html中的shake.js。 if plugin is made with the help of native then u have to add plugin tag from plugin.xml to your plugin xml. 如果插件是在本机的帮助下完成的,那么您必须将plugin.xml中的插件标签添加到插件xml中。 These shake plugin is made in javascript so no need to add plugin tag in xml file. 这些震动插件是用javascript制作的,因此无需在xml文件中添加插件标签。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM