我在尝试使用 ui-sortable 时遇到此错误。
jquery-3.1.0.min.js:2 未捕获错误:无法在初始化之前调用 sortable 上的方法;试图调用方法“选项”
提前致谢。
最佳答案
你的错误的意思是:$this.draggable('enable');
is called before $this.draggable();.
检查程序的执行流程:确保在尝试对其执行任何操作之前确实已经初始化了插件(例如:调用了 $this.draggable();
)。
关于angularjs - Uncaught Error : cannot call methods on sortable prior to initialization; attempted to call method 'option' ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38825740/