我正在使用 jQuery Mobile,一旦单击此列表中的链接:
<div id="scroller">
<div class="trans">
<ul id="thelist" data-corners= "false" data-role="listview">
<div class = "theListItem" data-role="collapsible-set" data-collapsed="false">
<li><a class= "left" data-inset="true" data-transition="pop" href="YesNoMaybe.html"><h4>Think Coffee</h4><h3>$3.50</h3></a></li>
<li><a class= "left" data-inset="true" data-transition="pop" href="YesNoMaybe.html"><h4>Think Coffeadsf dsadsf ads faf adsf adsf adsf sadf asdf adsfadsfadsfadsfadsf sadfasdfe</h4><h3>$3.50</h3></a></li>
<li><a class= "left" data-inset="true" data-transition="pop" href="YesNoMaybe.html"><h4>sup Coffee</h4><h3>$3.50</h3></a></li>
</div>
</ul>
</div>
</div>
<h4>
如果and<h3>
文本替换此列表中的文本,我会很高兴:
<ul id="thelist" data-corners= "false" data-role="listview">
<div class = "theListItem" data-role="collapsible-set" data-collapsed="false">
<li class="purchase" ><a data-inset="true" href="#"><h4>Think Coffee</h4><h3>$3.50</h3></a></li>
</div>
</ul>
我试过这个:
$('#transPage').live('pageinit', function() {
$('a').click(function(){
var $move = $(this).closest('li').appendTo("#YesNoMaybePage .theListItem");
});
});
而且一无所获。这些列表位于不同的页面上。所有建议都非常受欢迎。感谢世界。我欠你很多。