且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使emberjs应用程序与移动外观(如jQuery手机中的那个)?

更新时间:2023-02-27 08:20:05

@luissala使用jQuery Mobile创建了一个使用Ember的概念项目证明。这可能会让您处于正确的轨道上:



https ://github.com/LuisSala/emberjs-jqm


I have a simple project of a web application for mobile using Emberjs. For the look and feel, I want something equivalent to JQuery Mobile. Is there a way to mix Emberjs and jquery mobile? If so, how?

I have looked at the Travis-ci mobile app and they seem to have only defined a specific css for the mobile version. What is strange is that they also have this file : file that seems to be an attempt to integrate with JQMobile but they don't use it anywhere in the code.

I also have found this article Using Ember.js with jQuery UI but it's about JQuery UI. Can I use the same technique for JQuery Mobile?

Please share your own experience about having a mobile look and feel with Emberjs.

If you know any open source project on GitHub or wherever that uses Emberjs for mobile I will be thankful if you let me know the address.

What Technique do you recommend?

Note: I have make a first attempt to use the 'data-' html5 attributes of jquery mobile within a list generated by a controller but the elements of the view don't have change to a jquery mobile look and feel and I not sure why.

Sorry for my English, it is not my mother tongue.

@luissala created a proof of concept project using Ember with jQuery Mobile. It might get you on the right track:

https://github.com/LuisSala/emberjs-jqm