代码有问题,最后我用这种解决:
fonts: [
{ "header": "字体选择" },
{ "label": "宋体", "value": "SimSun" },
{ "label": "黑体", "value": "SimHei" },
{ "label": "微软雅黑", "value": "Microsoft YaHei" },
{ "label": "楷体", "value": "KaiTi" },
{ "label": "仿宋", "value": "FangSong" },
{ "label": "新宋体", "value": "NSimSun" },
{ "label": "华文细黑", "value": "STXihei" },
{ "label": "华文新魏", "value": "STXinwei" },
{ "label": "华文楷体", "value": "STKaiti" },
{ "label": "华文宋体", "value": "STSong" },
'Arial Black', 'Comic Sans MS', 'Courier New', 'Geneva', 'Georgia', 'Helvetica', 'Impact', 'Lucida Console', 'Meiryo', 'Meiryo UI', 'MingLiU', 'MingLiU-ExtB', 'MS Gothic', 'MS Mincho', 'MS PGothic', 'MS PMincho', 'MS Song', 'MS UI Gothic', 'NSimSun', 'Osaka', 'PMingLiU', 'PMingLiU-ExtB', 'SimSun', 'SimSun-ExtB', 'Song', 'Tahoma', 'Times New Roman', 'Trebuchet MS', 'Verdana', 'Yu Gothic'
] |