js和JQuery区别 this.class="btn-default btn-info"; $(this).toggleClass("btn-default btn-info"); 上面两者等效,js直接变量赋值。JQuery包装成一个个方法来处理