return document.styleSheets[0].addRule(".switch,.switch::before","background:"+opencolor);
//不可以执行
return [document.styleSheets[0].addRule(".switchOn,.switchOn::before","background:"+closecolor),
document.styleSheets[0].addRule(".switch,.switch::before","background:"+opencolor)]