【发布时间】:2013-04-02 05:57:32
【问题描述】:
我使用 PhoneGap 开发了一个应用程序。在我的应用程序中,我使用uili 在列表视图中显示了许多元素。在这里,我想滚动到列表中的最后一个元素。为此,我使用了以下代码,
$('#dates li').last().addClass('active-li').focus();
$('#dates li').last().focus();
这个我也用过
$('#dates').scrollTop($('#dates li:nth-child(14)').position().top);;
正在添加额外的类,但焦点不起作用。
【问题讨论】:
标签: javascript jquery html jquery-ui cordova