解决Error: cannot call methods on tabs prior to initialization; attempted to call method 'disable'的方法

来源:互联网 发布:我就蹭蹭不进去 知乎 编辑:程序博客网 时间:2024/05/31 19:02
在学习jQuery UI的时候,运用$("#tabs").tabs("disable"),没有出现选项卡禁用的情况,反而出现了下面的错误:不知道什么原因。
Error: cannot call methods on tabs prior to initialization; attempted to call method 'disable'
throw new Error( msg );
但是用$("#tabs").tabs().tabs("disable")却出现了想要的效果。
2 0