摘要: vue导入Echarts 安装Echarts npm install echarts --save // 或 yarn add echarts --save 在main.js中全部引用(全局引用) import echarts form 'echarts' vue.prototype.$echart 阅读全文
posted @ 2022-03-18 11:27 snail-2018 阅读(69) 评论(0) 推荐(0)
摘要: Eacharts 使用 创建 const myChart = this.$echarts.init(document.getElementById('myChart')) // 调用showLoading方法 myChart.showLoading({ text: '加载中...', color: 阅读全文
posted @ 2022-03-18 11:10 snail-2018 阅读(74) 评论(0) 推荐(0)
摘要: vue@cli3移动端H5 页面适配 一、lib-flexible (淘宝弹性布局方案) lib-flexible会自动在index.html里添加带有的标签,需要删除之前原来带有name=“viewport” 的标签,同时会自动设置html的font-size为屏幕宽度除以10,也就是1rem等于 阅读全文
posted @ 2022-02-09 13:46 snail-2018 阅读(363) 评论(0) 推荐(0)
摘要: 前言 项目过程中,经常会遇到 JS 数组合并的情况,时常为这个纠结。这里整理一下。 简单而实用的for 最容易想到的莫过于 for 了。 会变更原数组,当然也可以写成生成新数组的形式。 let arr = [1, 2] let arr2 = [3, 4] for (let i in arr2) { 阅读全文
posted @ 2021-12-14 16:45 snail-2018 阅读(58) 评论(0) 推荐(0)
摘要: // 复制字符串 copyText(text) { var textarea = document.createElement("input");//创建input对象 var currentFocus = document.activeElement;//当前获得焦点的元素 document.bo 阅读全文
posted @ 2021-11-16 10:39 snail-2018 阅读(90) 评论(0) 推荐(0)
摘要: 标签hover时触发befor 当我们想要实现某一个元素触发了hover是,想要给该元素设置before或after伪元素是,语法如下: .box:hover:before { content: '' } .box:hover:after { content: '' } 阅读全文
posted @ 2021-09-15 16:53 snail-2018 阅读(1154) 评论(0) 推荐(0)
摘要: js 字符串单个替换和全局替换 字符串单个替换 const data = 'asdadadasd'; let newData = data.replace('a', 'new'); //这里是将data里的第一个a替换成new,输出为 newsdadasd 字符串全局替换 第一种使用正则(字符串里没 阅读全文
posted @ 2021-09-14 09:56 snail-2018 阅读(3055) 评论(0) 推荐(1)
摘要: idea连接mysql报错Server returns invalid timezone. Go to 'Advanced' tab and set 'serverTimezone' property 解决方案1:修改时区 设置全局时区 mysql> set global time_zone = ' 阅读全文
posted @ 2020-12-18 16:29 snail-2018 阅读(195) 评论(0) 推荐(0)
摘要: qq邮箱发送邮件SMTP 代码 public class send { public static void main(String[] args) throws AddressException,MessagingException { // 创建Properties 类用于记录邮箱的一些属性 f 阅读全文
posted @ 2020-12-17 14:41 snail-2018 阅读(116) 评论(0) 推荐(0)
摘要: 今天写接口时从前端传递参数到后台,但是总是接收不到参数,原来是我没理解@PathVariable的含义 原来使用@PathVariable需要在地址后面添加参数 如果不添加参数则使用@requestpara 每日踩坑记录一下 阅读全文
posted @ 2020-12-16 13:19 snail-2018 阅读(308) 评论(0) 推荐(0)