摘要: 横轴: xAxis:[ axisLabel: { rotate: -25, //旋转度数 fontSize: 14 }, 或 axisLabel:{ rich: { color1: { color: "#53772d", fontSize: 20, fontWeight: "bold" }, col 阅读全文
posted @ 2022-03-11 16:30 寒冷的雨呢 阅读(469) 评论(0) 推荐(0) 编辑
摘要: <template> <div> <div :id="chartId" style="height:500px; width:100%"></div> </div> </template> <script> import echarts from "echarts"; export default 阅读全文
posted @ 2022-03-11 15:51 寒冷的雨呢 阅读(491) 评论(0) 推荐(0) 编辑
摘要: 正常写法 <span style="font-size: 12px"></span> 绑定写法 <span :style="'font-size: 12px'"></span> 调用函数写法 <span :style="'font-size:'+getNrFontSize(item.deptName 阅读全文
posted @ 2022-03-11 11:48 寒冷的雨呢 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 方法一:使用正则表达式,代码如下 getByteLen(val) { var len = 0; for (var i = 0; i < val.length; i++) { var a = val.charAt(i); if (a.match(/[^\x00-\xff]/ig) != null) { 阅读全文
posted @ 2022-03-11 10:48 寒冷的雨呢 阅读(985) 评论(0) 推荐(0) 编辑