AngularJS + jQuery Mobile [英] AngularJS + jQuery Mobile

查看:68
本文介绍了AngularJS + jQuery Mobile的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有其他方式可以用移动友好的方式设置 AngularJS 应用程序,而不是 CSS

Are there other possibilities to style an AngularJS application in a mobile friendly way than CSS?

我正在计划一个移动应用程序,并希望使用AngularJS进行逻辑和数据绑定,但我不希望使用 CSS 。

I am planning a mobile app and want to use AngularJS for the logic and data binding but I don't want to style everything on my own with CSS.

AngularJS 常见问题解答说它使用 jQuery

The AngularJS FAQ says that it uses jQuery:


Angular是否使用jQuery库?
是的,如果应用程序正在引导时,Angular可以使用jQuery。如果你的脚本路径中没有jQuery,Angular会回退到我们称之为jQLite的jQuery子集的自身实现。

Does Angular use the jQuery library? Yes, Angular can use jQuery if it's present in your app when the application is being bootstrapped. If jQuery is not present in your script path, Angular falls back to its own implementation of the subset of jQuery that we call jQLite.

由于更改使用( )/ off()而不是bind()/ unbind(),Angular 1.2仅适用于jQuery 1.7.1或更高版本。

Due to a change to use on()/off() rather than bind()/unbind(), Angular 1.2 only operates with jQuery 1.7.1 or above.

但是我没有在常见问题解答中找到的信息 AngularJS + jQuery 可以使用。

but there is no information I have found in the FAQ on which way AngularJS + jQuery can be used.

As你可以看到我试图使用AngularsJS FAQ获取信息,但找不到它。

As you can see I have tried to get the information using AngularsJS FAQ, but could not found it.

你找到了一些的例子吗? AngularJS jQuery Mobile 进行样式设计?

Have you found some example(s) of AngularJS with jQuery Mobile for styling?

推荐答案

SO 上已有问题要比较 AngularJS jQuery Mobile

There was already the question on SO to compare AngularJS and jQuery Mobile.

并且在 ANS你可以找到一些信息 - 它可以为你进一步阅读。

And in the answer you can find some information - it is kind of further reading for you.

和arcticle jQuery Mobile和AngularJS一起工作应该让你回答你的问题。它有一些建议,例如:

And the arcticle jQuery Mobile and AngularJS Working Together should give you answe to your question. It has some advices, for example:


在AngularJS之前加载jQM库

Load jQM libs before AngularJS


让jQM处理URL路由

Let jQM handle the URL routing

等。

这篇关于AngularJS + jQuery Mobile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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