0
偏移值定義,但控制檯告訴我這是沒有定義:UI不與拖動
ui is not defined
在我的HTML的jQuery腳本包括:
<script language="javascript" type="text/javascript"
src="/templates/protostar/js/jquery.min.js"></script>
<script language="javascript" type="text/javascript"
src="/templates/protostar/js/jquery-ui.min.js"></script>
<script language="javascript" type="text/javascript"
src="/templates/protostar/js/jclip.js"></script>
<script language="javascript" type="text/javascript"
src="/templates/protostar/js/cp.js"></script>
我不明白.. 。這是我的jQuery代碼:
<script type="text/javascript" language="javascript">
(function ($) {
$(document).ready
(
function() {
$('.mapban').parent().jclip(0, 0, 1060, 750);
$('#mapplane').draggable({ containment: $('#containermy'),
scroll: false,
drag: function() {
console.log(ui.offset);
},
});
})
</script>