在学习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")却出现了想要的效果。