jQuery jQueryMobile:隐藏锚标记的数据图标

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/9449585/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 10:49:32  来源:igfitidea点击:

jQueryMobile: Hide data-icon for anchor tag

jquerylistviewjquery-mobile

提问by Ian Vink

jQueryMobile:

jQuery移动:

In a simple listview I have the following:

在一个简单的列表视图中,我有以下内容:

<li><a>SOME TEXT</a></li>

A data-icon of right arrow is displayed.

显示右箭头的数据图标。

How do I have no data-icon displayed at all?

我如何根本不显示数据图标?

回答by Ryan

Just add data-icon="false", i.e.

只需添加data-icon="false",即

<li data-icon="false"><a>SOME TEXT</a></li>

回答by tbo47

the easiest is to remove the right class $("li>a").removeClass("ui-btn-icon-right");

最简单的是删除正确的类 $("li>a").removeClass("ui-btn-icon-right");