应用任何功能时,Bootstrap Switch都会抛出错误

时间:2014-05-12 09:58:51

标签: jquery twitter-bootstrap

我正在使用自举开关http://www.bootstrap-switch.org/

当我尝试使用以下代码应用任何功能时

$('#switch5').bootstrapSwitch('setSizeClass', 'switch-mini');

它一遍又一遍地给我这个错误。

Cannot call method 'apply' of undefined    
我错过了什么吗?

0 个答案:

没有答案