$("#a > img");我只能選到下一層的物件
$("#a > img").attr('id')
$("this > img").attr('id')不行
$(this > img).attr('id')也不行
$("#a > img").click(function () { alert($(this).attr("id")); });
歡迎光臨 jsGears.com 技術論壇 - AJAX, JavaScript, jQuery, 網站開發, 前端效能優化 (http://www.jsgears.com/) |