为Hijax和ajax定制Jquery移动设备(Custom Jquery mobile for Hijax and ajax)

编程入门 行业动态 更新时间:2024-10-08 20:40:15
为Hijax和ajax定制Jquery移动设备(Custom Jquery mobile for Hijax and ajax)

有没有办法自定义jquery mobile以包含与hijax和ajax相关的所有功能?

我正在使用下面的构建器。 通过选择所有导航选项(在工具上),它将自动加载依赖项,但在测试自定义js和css后,hijax不起作用。

jQuery Mobile下载生成器

正常版本工作正常,但我不希望它像往常一样在jquery mobile上自定义所有UI。 而且我也不需要链接表单上的任何其他小部件而不是导航(hijax,ajax)。

谢谢

is there a way to customize jquery mobile to include all the functionality related to hijax and ajax?

I'm using the below builder. By selecting all the navigation options (on the tool) it will automatically load the dependencies but after testing the custom js and css the hijax doesn't work.

jQuery Mobile Download Builder

The normal release works fine but i don't want it to customize all the UI as usual on jquery mobile. And i also don't need any other widget than navigation (hijax, ajax) on links and forms.

Thanks

最满意答案

我错误地导入了jquery移动构建器工具生成的CSS自定义文件。 问题有一个简单的解决方案:

确保您需要以下CSS文件:

jquery.mobile.custom.theme.css jquery.mobile.custom.structure.css

在css文件夹中创建一个名为images的新文件在那里你应该有loader.gif

此外,在文档的标题处,在css之后,确保加载jquery,然后加载jquery.mobile和自定义构建。

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.1.min.js"><\/script>')</script> <script src="js/jquery.mobile.custom.js"></script> <script src="js/jquery-ui-1.10.1.custom.min.js"></script>

By mistake I didn't import a CSS custom file generated by the jquery mobile builder tool. The problem had an easy solution:

Ensure that you require the following CSS files:

jquery.mobile.custom.theme.css jquery.mobile.custom.structure.css

At the css folder create a a new one called images There you should have the loader.gif

Also, at the heading of the document, after the css, ensure that jquery is loaded followed by jquery.mobile and the custom build.

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.1.min.js"><\/script>')</script> <script src="js/jquery.mobile.custom.js"></script> <script src="js/jquery-ui-1.10.1.custom.min.js"></script>

更多推荐

本文发布于:2023-08-03 12:53:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1388927.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:设备   ajax   Hijax   Jquery   mobile

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!