上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 22 下一页
摘要: 方法1:写在app.vue的mounted中 export default { data(){return{}}, mounted(){ //页面刷新回到顶部 window.addEventListener("beforeunload", (e) => { window.scroll(0, 0); 阅读全文
posted @ 2021-04-20 12:45 sinceForever 阅读(154) 评论(0) 推荐(0)
摘要: 进入链接:定义自己要的样式,然后使用即可 //这个是官网使用的例子https://lbs.amap.com/demo/javascript-api/example/personalized-map/custom_style//这个是自定义的具体页面https://lbs.amap.com/dev/m 阅读全文
posted @ 2021-04-16 14:01 sinceForever 阅读(4950) 评论(0) 推荐(1)
摘要: 在index.html中引入高德地图后,报错 ‘AMapUI‘ is not defined , ‘AMap‘ is not defined‘ 先是试了把高德地图的引用放到body里发现没有用,后查明在在.eslintrc.js中配置如下 "globals": { "AMap": "true", " 阅读全文
posted @ 2021-04-16 10:58 sinceForever 阅读(4621) 评论(0) 推荐(0)
摘要: elementui的el-table表格下方的滚动条消失 如图: 加如下代码即可: <style lang="scss" scoped> /deep/.el-table__body-wrapper{ background-color: #F7F6FF; } /deep/.el-table__body 阅读全文
posted @ 2021-04-14 14:03 sinceForever 阅读(2413) 评论(0) 推荐(0)
摘要: 当我们删除远程分支后执行 git branch -a 本地却依然能看到远程分支 这个时候我们只需要执行 git remote prune origin 清理一下就可以了 然后再次执行 git branch -a 就看不到啦 阅读全文
posted @ 2021-04-02 16:15 sinceForever 阅读(1482) 评论(0) 推荐(0)
摘要: 前言:项目需要,需要画一段数据的折线图,折线图根据正常数据和异常数据显示两种颜色的线,并且在鼠标经过异常线横坐标时,标记该点往后的十个点组成的线,标记可以有很多方式: 1,第一个点和最后一个点做标记markPoint,2,第一个点到第十个点做区域阴影markArea,3,第一个点和第十个点都变颜色. 阅读全文
posted @ 2021-03-31 16:06 sinceForever 阅读(4289) 评论(0) 推荐(0)
摘要: axios是一个库,并不是vue中的第三方插件,使用时不能通过Vue.use()安装插件,需要在原型上进行绑定, 例如以下写法是vue2引入axios的写法 import Vue from 'vue' import axios from ‘axios’ Vue.prototype.$http = a 阅读全文
posted @ 2021-03-20 20:07 sinceForever 阅读(7916) 评论(0) 推荐(2)
摘要: 前期准备 Echarts.vue文件 <template> <div :id="id"></div> </template> <script> import echarts from 'echarts' import chinaJSON from '@/assets/data/chinaMap.js 阅读全文
posted @ 2021-03-16 15:07 sinceForever 阅读(5578) 评论(0) 推荐(0)
摘要: 重点在js部分, 此文一个是记录elementui表格多行合并,第二个是记录合并后序号如何显示,如果序号不处理,那可能就是1,3,7,9......等这样的,只有处理之后才是1,2,3,4.....这样的。最后面是图,可以看效果。 html部分写的比较简略, <el-table :data="tem 阅读全文
posted @ 2021-03-16 14:30 sinceForever 阅读(3272) 评论(0) 推荐(0)
摘要: 在APP.vue中写页面关闭时触发的方法, navigator.sendBeacon方法可以搜索文档具体用法,它支持的传参形式是有限制的。 mounted(){ //页面打开注册关闭事件 //unload //onbeforeunload let url = xxx/xxx/xxx window.a 阅读全文
posted @ 2021-03-12 17:21 sinceForever 阅读(338) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 22 下一页