问题描述: 浏览器报错''styleSheets undefined'' this.sheetData.styleSheets = ""; 原因分析: 有的场景styleSheets 并不存在,导致浏览器报错未定义 解决方案: 加个判断,如果styleSheets 不存在,那么就自动加上这个属性,并赋空值。 if (this.sheetData) { this.sheetData['styleSheets'] = ""; }