的网址:https://johnny.github.io/jquery-sortable/如何在本地主机上运行jquery排序?
我下载和本地主机上运行它,但它不工作
我跑example.html的
我的网址是这样的:http://localhost/ngetest/drag_drop/source/example.html
结果:
我upd吃了example.html是这样的:
<style type="text/css">
body.dragging, body.dragging * {
cursor: move !important;
}
.dragged {
position: absolute;
opacity: 0.5;
z-index: 2000;
}
ol.example li.placeholder {
position: relative;
/** More li styles **/
}
ol.example li.placeholder:before {
position: absolute;
/** Define arrowhead **/
}
</style>
<ol class='example'>
<li>First</li>
<li>Second</li>
<li>Third</li>
</ol>
<script src='js/jquery-sortable.js'></script>
<script type="text/javascript">
$(function () {
$("ol.example").sortable();
});
</script>
但也一样。它不工作
谢谢
检查您的浏览器控制台是否出现错误? –
您是否包含jQuery? – abhishekkannojia
看起来你忘了包含jQuery。请包括它。 –