如何使emberjs应用程序与移动外观(如jQuery手机中的那个)? [英] How to make emberjs app with a mobile look (like the one in jquery mobile)?

查看:84
本文介绍了如何使emberjs应用程序与移动外观(如jQuery手机中的那个)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个使用Emberjs的移动应用程序的简单项目。对于外观和感觉,我想要一些相当于JQuery Mobile的东西。有没有办法混合Emberjs和jquery手机?如果是,怎么样?



我看过Travis-ci手机应用程序,他们似乎只为移动版定义了一个特定的CSS。奇怪的是他们也有这个文件:文件似乎是试图与JQMobile集成,但是在代码中的任何地方都不使用它。



我也发现本文使用Ember.js与jQuery UI ,但它是关于JQuery UI。我可以为JQuery Mobile使用相同的技术吗?



请分享自己关于使用Emberjs的移动外观的体验。



如果您知道GitHub上的任何开源项目,或者使用Emberjs进行移动的任何地方,如果您让我知道地址,我将非常感激。



什么技术你推荐吗?



注意:我首先尝试在控制器生成的列表中使用jquery mobile的data-html5属性,但是视图没有改变jquery手机的外观和感觉,我不知道为什么。



对于我的英语,这不是我的母语。 >

解决方案

@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

这篇关于如何使emberjs应用程序与移动外观(如jQuery手机中的那个)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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