我正在使用以下代码:
$("#jplayer_playlist_item_" + i).data("index", i).click(function () {
var index = $(this).data("index");
if (playItem != index) {
playListChange(index);
} else {
$("#jquery_jplayer").jPlayer("play");
}
$(this).blur();
return false;
});
我正在尝试获取它,以便当我单击"#jplayer_playlist_item_" + i"
(它是 a li
)的父级时,它会继续执行此功能,就像我单击该项目本身一样。
我之前尝试过纠正.parent
,.click
但没有奏效。
谢谢