나는 다음과 같은 코드 조각 한 : circustances는, executiong의 순서가 될 것이라고에서변경 이벤트 실행 순서는
<html>
<head>
<script src="myplugin.js" />
<script>
$(document).ready(function() {
$('#mytable tbody tr').live('click', function() {
alert('Hi');
});
});
</script>
</head>
<body>
<script>
$('#mytable').myplugin();
</script>
<table id="mytable">
<tbody>
<tr>
<td>Something</td>
</tr>
</tbody>
</table>
</body>
</html>
myplugin.js code
.....
return this.each(function(index, id) {
$(id + ' tbody tr').live('click', function() {
alert('Hello');
});
});
.....
:
alert('Hi');
alert('Hello');
하지만 내가 원하는 반비례하십시오. 실행 순서를 변경할 수 있습니까? 당신이해야
니스,이 작동했습니다 : D – Diego