摘要: <div id="time" style="width:60px;height:60px;"></div> <script type="text/javascript"> // 思路:颜色由#、A-F、0-9组成 var str = "ABCDEF0123456789"; var color = " 阅读全文
posted @ 2020-11-09 21:47 云里知音 阅读(138) 评论(0) 推荐(0)
摘要: 一、日期对象的创建方式 1. 当前日期: var oDate = new Date(); 2. 指定日期: 指定到未来或过去。 有以下两种写法: 1) var oDate = new Date("2020-10-01 12:00:00"); 2) var oDate = new Date("2020 阅读全文
posted @ 2020-11-08 22:41 云里知音 阅读(437) 评论(0) 推荐(0)
摘要: 在series中添加startAngle:90, 阅读全文
posted @ 2020-11-08 18:47 云里知音 阅读(782) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-11-07 22:50 云里知音 阅读(266) 评论(0) 推荐(0)
摘要: <div id="time"></div> <script type="text/javascript"> // 将日期格式化输出 2015|08|24 function formatter(s) { var oDate = new Date(); //获取当前时间 Sun Nov 08 2020 阅读全文
posted @ 2020-11-07 22:39 云里知音 阅读(259) 评论(0) 推荐(0)
摘要: option = { title: [{ text: 10000, x: '50%', y: '38%', textAlign: 'center', textStyle: { fontSize: '50', fontWeight: '100', color: '#fff', textAlign: ' 阅读全文
posted @ 2020-11-07 21:42 云里知音 阅读(207) 评论(0) 推荐(0)
摘要: 报错: $(...).on is not a function 解决办法: 当前引入的jQuery版本过低导致报错,引入较高的版本即可。 阅读全文
posted @ 2020-11-04 22:36 云里知音 阅读(8535) 评论(0) 推荐(0)
摘要: option = { backgroundColor:"#e4eef9", grid:{ top:"3%", right:"6%", left:"18%", bottom:"20%", }, xAxis: { show:false, }, yAxis: { type: 'category', axi 阅读全文
posted @ 2020-11-03 10:34 云里知音 阅读(909) 评论(0) 推荐(0)
摘要: // 动态获取数据 function getData(){ var request = new XMLHttpRequest(); request.open("get","http://localhost:3000/get_chart"); request.send(); request.onrea 阅读全文
posted @ 2020-11-02 22:51 云里知音 阅读(1007) 评论(0) 推荐(0)
摘要: 1、第一种写法 window.onresize = function(){ myChart.resize(); // myChart.resize(); } 2、第二种写法 window.addEventListener("resize",function(){ myChart.resize(); 阅读全文
posted @ 2020-11-02 22:42 云里知音 阅读(1023) 评论(0) 推荐(0)