下面给出的代码示例:
(function (window, document) {
$('.rating_title_container').parents('.item_row_def').hover(function() {
setTimeout(function() {
system.console('Worked');
}, 1000);
});
})(window, document);
我对 JS、jQuery 很陌生。谁能解释我在这里缺少什么?在http://jsfiddle.net/p7gBy/5/中发布代码
HTML
<table>
<thead>
<tr>
<th class="item_row_def" onclick="sort(3);">
<table class="col-header">
<tbody>
<tr>
<td>
<h2 class="header_title rating_title_container">Rating</h2>
</td>
</tr>
</tbody>
</table>
</th>
</tr>
</thead>
</table>