我想在左侧和右侧的jquery按钮中设置文本,如下图所示?
<ul id="listid" data-theme="c" data-role="listview">
<li><a href="#"><h3 class="ui-li-heading">Text 1</h3><p class="ui-li-desc">Date
1</p></a></li>
<li><a href="#"><h3 class="ui-li-heading">Text 2</h3><p class="ui-li-desc">Date
2</p></a></li>
</ul>
答案 0 :(得分:1)
出于此目的使用课程ui-li-aside
:
<ul id="listid" data-theme="c" data-role="listview">
<li>
<a href="#">
<h3 class="ui-li-heading">Text 1</h3>
<p class="ui-li-desc">Date 1</p>
<p class="ui-li-aside">Score 1</p>
</a>
</li>
<li>
<a href="#">
<h3 class="ui-li-heading">Text 2</h3>
<p class="ui-li-desc">Date 2</p>
<p class="ui-li-aside">Score 2</p>
</a>
</li>
</ul>