Installing jquery mobile in phonegap [duplicate]

狂风中的少年 提交于 2019-12-25 00:18:00

问题


Possible Duplicate:
Correct way of using JQuery-Mobile/Phonegap together?

do I have to install jquery mobile into phonegap so that it is included into the APK file? I'm using in the HTML file the google jquery library and would like to have he app functioning also offline.

also phonegap is working very slowly, is anybody else expiriencing this?

thanks a lot...


回答1:


You dont need to install it, just follow the tutorial and copy jQM files into assets/www directory and rebuild android project so it can accommodate to phonegap libraries.

This tutorial will help you learn how to create an apk file, but from your second question I think you know what to do.

Regarding your second question slowness is not do to phonegap but because of jQuery mobile. It is still a rather slow framework for mobile devices. iPhone 5+ is currently best mobile platform for jQM, for android only 4+ version. Look at this graphs, they represent jQuery performance differences between mobile phones browsers and their desktop variations. Notice a difference between mobile phones and desktop browsers, that is a main reason for phonegap sluggishness.



来源:https://stackoverflow.com/questions/13572708/installing-jquery-mobile-in-phonegap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!