我正在尝试对 ul 项目列表进行排序并jquery-ui-1.7.2.custom.min.js
用于相同的项目,但出现以下错误:
$(...).sortable is not a function.
知道我做错了什么吗?
提前致谢。
我正在尝试对 ul 项目列表进行排序并jquery-ui-1.7.2.custom.min.js
用于相同的项目,但出现以下错误:
$(...).sortable is not a function.
知道我做错了什么吗?
提前致谢。
Without an HTML/js snippet or a jsfiddle you have some points to check.
Check to have included the jQuery core library.
Check to have included jquery-ui-1.7.2.custom.min.js
in your file after jQuery.
You are using a custom distro so check to have included the right dependencies (these ar for jQuery UI 1.9.1) to let sortable works:
Run your script inside $(document).ready
function to ensure that the DOM is fully loaded before to acess it.
Specify a function to execute when the DOM is fully loaded
检查您的 jquery 文件的权限和包含。有时权限浏览器无法读取文件并给出错误。