摘要: 思路: 用百度地图提供的API画出矩形,根据画出的矩形得到矩形的对角线。移动对角线,再根据移动后的对角线计算得到新的矩形。 引用vue-baidu-map <template> <div> <div :style="{height: tableHeight + 'px'}"> <baidu-map 阅读全文
posted @ 2020-04-13 10:16 日升月恒 阅读(543) 评论(0) 推荐(0)
摘要: /* 在线正则表达式测试: https://tool.oschina.net/regex/# + 号代表前面的字符必须至少出现一次(1次或多次)。 * 号代表字符可以不出现,也可以出现一次或者多次(0次、或1次、或多次)。 ? 问号代表前面的字符最多只可以出现一次(0次、或1次)。 *、+限定符都是 阅读全文
posted @ 2020-03-26 16:48 日升月恒 阅读(179) 评论(0) 推荐(0)
摘要: // encodeURI、encodeURIComponent、decodeURI、decodeURIComponent四个用来编码和解码 URI 的函数 // URL截取后面的字符串转换成对象 function GetStr() { var url = location.search; //获取u 阅读全文
posted @ 2020-03-26 16:19 日升月恒 阅读(827) 评论(0) 推荐(0)
摘要: /*CSS速查总表 --作者:Shifone*/ /* http://css.cuishifeng.cn/ */ /* 伪元素表单控件默认样式重置与自定义大全 http://www.zhangxinxu.com/wordpress/2013/06/%E4%BC%AA%E5%85%83%E7%B4%A 阅读全文
posted @ 2020-03-26 16:15 日升月恒 阅读(186) 评论(0) 推荐(0)
摘要: /* 深入理解CSS弹性盒模型flex: http://www.cnblogs.com/xiaohuochai/p/5323146.html#anchor4-1 */ /* 伸缩容器 以下6个属性作用在伸缩容器上 1、伸缩流方向 flex-direction 2、伸缩流换行 flex-wrap 3、 阅读全文
posted @ 2020-03-26 16:09 日升月恒 阅读(315) 评论(0) 推荐(0)
摘要: router文件夹index.js import Vue from 'vue' import Router from 'vue-router' const login = r => require.ensure([], () => r(require('@/components/login.vue' 阅读全文
posted @ 2020-03-25 12:14 日升月恒 阅读(659) 评论(0) 推荐(0)
摘要: <template> <div> <div class="throttle"> <div>输入框节流:</div> <input type="text" v-model="throttleTxt" placeholder="input输入框节流"> </div> <div>{{throttleTex 阅读全文
posted @ 2020-03-25 12:04 日升月恒 阅读(1798) 评论(0) 推荐(0)
摘要: 例:在src下面新建一个文件夹store,在store里新建文件夹modules和index.js,在modules里新建文件token.js,在token.js里做登录拦截 token.js export default { state: { token: null, title:'' }, mu 阅读全文
posted @ 2020-03-25 11:55 日升月恒 阅读(266) 评论(0) 推荐(0)
摘要: http.js import axios from 'axios'; import Qs from "qs" import store from '@/store/store' import router from '@/router/index' // 设置请求超时时间 https://www.k 阅读全文
posted @ 2020-03-25 11:35 日升月恒 阅读(1601) 评论(0) 推荐(0)
摘要: <template> <div> <div style="font-size: 0;"> <div class="img-box" v-for="(item,i) in list" :key="i"> <div class="img-bg-box"> <!-- 占位图 --> <img class= 阅读全文
posted @ 2020-03-24 12:23 日升月恒 阅读(319) 评论(0) 推荐(0)