如何在framework7中使用插件jquery [英] how use plugin jquery in framework7

查看:244
本文介绍了如何在framework7中使用插件jquery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Cordova构建移动应用程序,并且选择了名为"framework7"的框架.在应用程序中我有HTML页面的有文本框的时间,当用户单击文本框时,时钟选择器将显示 (Clockpicker jQuery插件) 现在的主要问题是framework7不允许jquery插件使用它 谁能帮我

I am trying to build a mobile application with Cordova and I have chosen the framework named "framework7". In the application I have HTML page have textboxes time, when the user clicks on the textbox clock picker will be display (clockpicker jquery plugin) Now the main issue is that the framework7 doesn't allow the jquery plugins to work with it can anyone help me

推荐答案

ofcourse jQuery与cordova一起使用我为用cordova编写的所有应用程序都使用了jquery.dowloadjquery并添加了您的项目.并且在编写时应格外小心,您需要在framework7.js之前编写它,因为它使用了它

ofcourse jquery works with cordova i used jquery for all my app that i wrote with cordova .dowload jquery and add your project.and u should be careful where u write, u need to write it before framework7.js because it uses it

这是我的常规用法,我添加了我下载到lib文件夹的jquery.js

this is my general usage i added jquery.js that i downloaded to lib folder

<script src="cordova.js"></script>
    <script src="scripts/platformOverrides.js"></script>
    <script src="lib/jquery-1.11.3.min.js"></script>
    <script src="lib/framework7.min.js"></script>
    <script src="lib/my-app.js"></script>

    <script src="scripts/index.js"></script>
    <script src="scripts/Home.js"></script>

这篇关于如何在framework7中使用插件jquery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆