1、效果如图 2、Controller @GetMapping("/exportExcel") public void exportExcel(@RequestParam(value = "menu") String menu, @RequestParam(value = "dwflglId") i ...
分类:
其他好文 时间:
2020-07-10 18:49:09
阅读次数:
424
小程序使用echarts后代码包过大怎么办,小程序预览上限为2048kb,经常想预览的时候超限制了。 于是想要优化一下。 echarts在线构建网址:https://echarts.apache.org/zh/builder.html 可自由选择所需图表、坐标系、组件进行打包下载,并且可对渲染引擎、 ...
分类:
其他好文 时间:
2020-07-10 18:38:41
阅读次数:
291
<input type="file" accept="image/*" mutiple="mutiple" capture="camera" /> 三个属性: accept - 规定可提交的文件类型。 capture - 系统所捕获的默认设备。camera(照相机),camcorder(摄像机),m ...
分类:
移动开发 时间:
2020-07-10 17:07:56
阅读次数:
129
第二次用echart,第一次做地图, <template> <div class="echarts" style="background:#3bafde"> <div :style="{height:'600px',width:'100%'}" ref="myEchart"></div> </div ...
分类:
其他好文 时间:
2020-07-10 17:03:19
阅读次数:
82
在触屏设备下,要判断是单指还是多指操作,可以通过event.touches数组对象的长度判断 例如: document.addEventListener('touchstart',function(event){ var touches = event.touches; if(touches.len ...
分类:
移动开发 时间:
2020-07-10 11:41:37
阅读次数:
129
1.利用了正则表达式和三目运算符,含义就是如果是移动端打开的话那就跳转到 "https:www.baidu.com/" ,如果不是就跳转到"http://new.baidu.com/" window.location.href = /Android|webOS|iPhone|iPod|BlackBe ...
分类:
移动开发 时间:
2020-07-10 11:37:54
阅读次数:
96
VueJs echarts使用 栗子 渲染echart一定是要在 mounted 生命周期中使用,created只是创建dom。 <!DOCTYPE html> <html> <head> <title></title> <link rel="stylesheet" href="https://cd ...
分类:
Web程序 时间:
2020-07-10 09:26:51
阅读次数:
97
1、在index.html中引入百度秘钥 <script src="http://api.map.baidu.com/api?v=3.0&ak=申请的key"></script> 2、在webpack的配置文件中设置外部扩展: 如果是Vue-cli2,在build/webpack.base.conf ...
分类:
其他好文 时间:
2020-07-09 19:44:38
阅读次数:
151
function randomValue() { return Math.round(Math.random()*2000); } option = { backgroundColor:'block', tooltip: {}, visualMap: { min: 0, max: 2000, tex ...
分类:
其他好文 时间:
2020-07-09 15:19:48
阅读次数:
71
前言 最近接了一个外包的项目,其中有个需求是这样的,需要展示一个中国的统计地图,要求每个省市区都是不一样的颜色,必须特别区分开。以及隐藏南海部分。看了Echats相关文档,发现有类似的demo,但不是特别符合要求。于是自己仔细读文档研究。找到解决问题于是分享一下。 正文 废话不多少,直接上代码 方法 ...
分类:
其他好文 时间:
2020-07-09 12:36:05
阅读次数:
264