04 2021 档案
摘要:<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi
阅读全文
摘要:echarts中,横轴数据如果非常多,会自动隐藏一部分数据,我们可以通过属性interval来进行调整。 如下图,当横轴时间为13天时,echarts会自动隔天显示 如果我们想显示全,则需要在xAxis 属性加上axisLabel:{interval: 0} 1 2 3 4 5 6 "xAxis":
阅读全文
摘要:legend: { show: true, //是否显示 type: "plain", // 图例的类型 'plain':普通图例 'scroll':可滚动翻页的图例 zlevel: 1, // 所有图形的 zlevel 值。 icon: "circle", top: "5%", // bottom
阅读全文
摘要:handleClick(str){ downLoadReport({ id:str.id },{responseType:'blob'}).then((response) => { console.log(response.headers['content-disposition']) // deb
阅读全文
摘要:正确用法:运用抛出异常(try catch)try { var array = ["第一","第二","第三","第四"]; // 执行到第3次,结束循环 array.forEach(function(item,index){ if (item == "第三") { throw new Error(
阅读全文