jquery和css的开关按钮 ;(function($){ $(document).ready(function(){ $(".powerExp").powerbutton({value:"on"}); $(".powerExp1").powerbutton({ value:"false", onClass:"true", offClass:"false", duration:80, debug:true }); }); })(jQuery);