上一页 1 2 3 4 5 6 7 ··· 14 下一页
摘要: 1.判断一个区域是不是合法的多边形 通过向量来判断,两条线段是否相交,是否规范相交(非端点相交) 向量 在 的 顺时针方向,那么 向量 在 的 逆时针方向,那么 相对于P1P2而言,P1Q1在逆时针方向,P1Q2在顺时针方向,即存在P1Q1 和 P1P2的叉积 与P1Q2 和 P1P2的叉积 的乘积 阅读全文
posted @ 2020-12-25 10:45 Tutao1995 阅读(210) 评论(0) 推荐(0) 编辑
摘要: { // 換行 "editor.wordWrap": "on", // 代码缩进修改成2个空格 "editor.tabSize": 4, // 不檢查縮進,保存后統一按設置項來設置 "editor.detectIndentation": false, //保存的时候自动格式化 "editor.for 阅读全文
posted @ 2020-09-09 15:08 Tutao1995 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 背景: excel 文件下载,后台返回的是二进制文件 开始: api.workerDownload({ ...this.queryString }).then(res => { const blob = new Blob([res.data], { type: 'application/vnd.ms 阅读全文
posted @ 2020-09-04 10:55 Tutao1995 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 1.netstat -ano|findstr "端口" 2.tasklist|findstr "端口" 3.任务管理器 关掉对应内容 阅读全文
posted @ 2020-08-28 11:32 Tutao1995 阅读(130) 评论(0) 推荐(0) 编辑
摘要: 插件: postcss-pxtorem 配置: vue.config.js : postcss: [ require('postcss-pxtorem')({ rootValue: 20, unitPrecision: 5, // selectorBlackList:['.inline-calend 阅读全文
posted @ 2020-08-20 16:39 Tutao1995 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 限制elementui picker组件 限制选择日期在一个月内。 <el-date-picker v-model="dateValue" class="filter-item" type="daterange" value-format="yyyy-MM-dd" start-placeholder 阅读全文
posted @ 2020-07-24 16:57 Tutao1995 阅读(3027) 评论(0) 推荐(0) 编辑
摘要: 1.三角形 .sanjiaoxing{ height: 0; width: 0; border: 14px solid #fff; border-top: 14px solid transparent; border-right: 14px solid transparent; border-lef 阅读全文
posted @ 2020-07-22 15:10 Tutao1995 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 1.form const formSendData = (sendData, url) => { let input = document.createElement('input'); input.type = 'text'; input.name = 'json'; input.value = 阅读全文
posted @ 2020-07-18 17:47 Tutao1995 阅读(193) 评论(1) 推荐(0) 编辑
摘要: let autoAddZero = (val, len) => { let tempStr = '' for(let i=0;i<len;i++){ tempStr += '0' } return (`${tempStr}${val}`).slice(-len) } 阅读全文
posted @ 2020-07-10 16:29 Tutao1995 阅读(1356) 评论(0) 推荐(0) 编辑
摘要: vue 打包后的样式与开发环境的样式不一致 原因:1.在main.js中css引入的顺序 2.库样式可能是动态js控制 解决:1.main.js 中调整对应css的顺序 2.在覆盖样式的css中增加对应样式的权重 a.添加importan b.对应的样式添加多一级名字(例如: 库样式:li{back 阅读全文
posted @ 2020-07-09 16:59 Tutao1995 阅读(1721) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 14 下一页