現在,我使用jQuery庫和我所面臨的問題如下因素: Supppose我有排序列表,如果項目爲了改變事件jQuery的排序
<html>
<head>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js> </script>
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script>
<script>
$(document).ready(function(){
jQuery(".block").sortable({
axis: 'y'
});
});
</script>
</head>
<body>
<ul class="block" type="none">
<li>1</li>
<li>2</li>
<li>3</li>
</ul>
</body>
</html>
所以ofter順序改變,我怎樣才能使偵聽這個事件,我的意思是,有任何訂單更改事件的聽衆或類似的東西。
雅!有檢查jquery ui的排序文件。 – SVS 2012-08-01 07:20:15