摘要: Object.fromEntries(),接收一个参数(map/Arr),转换MAP和数值为键值对类型JSON 示例: let entries = [ ['foo', 'bar'], ['baz', 42] ] let obj = Object.fromEntries(entries); conso 阅读全文
posted @ 2021-03-03 11:58 淮生 阅读(143) 评论(0) 推荐(0)
摘要: 在新建JS文件导入路径,示例: import ExampleLayout from '@/layout/example' 注册挂载: export default { path: '/example', redirect: '/example/sprite',//这里是重定向 component: 阅读全文
posted @ 2021-02-20 11:03 淮生 阅读(62) 评论(0) 推荐(0)
摘要: 1. οncοntextmenu="window.event.returnvalue=false" 将彻底屏蔽鼠标右键 2. <body onselectstart="return false"> 取消选取、防止复制 3. οnpaste="return false" 不准粘贴 4. οncοpy= 阅读全文
posted @ 2021-02-20 09:26 淮生 阅读(389) 评论(0) 推荐(0)
摘要: 2.5.6版本layui在线引用地址 layui.js: https://www.layuicdn.com/layui-v2.5.6/layui.js layui.css: https://www.layuicdn.com/layui-v2.5.6/css/layui.css 最新版本layui在线 阅读全文
posted @ 2021-02-01 11:16 淮生 阅读(330) 评论(0) 推荐(0)
摘要: 样式初始化: html,p,span,em,img,ins,kbd,q,b,i,dl,dt,dd,ol,ul,li,thead,tr,th,td,header{ margin:0; padding:0; } body{ margin: 0; border: 0; } em,i { font-weig 阅读全文
posted @ 2021-01-28 09:56 淮生 阅读(204) 评论(0) 推荐(0)
摘要: 模糊查询: let a = '你好'; //用户输入的字符串 let str = ['',...a,''].join('.*'); //转化成正则格式的字符串 let reg = new RegExp(str) //正则 reg.test('aaa你aaa好aaa') //去匹配待查询的字符串 跳转 阅读全文
posted @ 2021-01-27 16:55 淮生 阅读(145) 评论(0) 推荐(0)
摘要: HTML代码自动补全 { "window.zoomLevel": 1, "git.ignoreMissingGitWarning": true, // 忽略“缺失git”的警告 "files.autoSave": "onFocusChange", // 配色 "editor.tabSize": 2, 阅读全文
posted @ 2021-01-01 14:26 淮生 阅读(110) 评论(0) 推荐(0)
摘要: 1. git remote -v 查看远程仓 2. git fetch origin PtahRevitDesigner:temp 从远程仓orgin仓的master分支下载到本地,并新建一个temp分支 3. git diff temp 查看temp分支与本地原有分支的不同 4. git merg 阅读全文
posted @ 2020-09-19 12:55 淮生 阅读(423) 评论(0) 推荐(0)
摘要: 配置页: import axios from "axios"; import mconfig from "./config" import {Message} from "element-ui" import router from "../router" axios.defaults.baseUR 阅读全文
posted @ 2020-09-18 18:52 淮生 阅读(403) 评论(0) 推荐(0)
摘要: 设置账号密码 git config --global user.name "账号" git config --global user.name "邮箱" 继续设置 ssh-keygen -t rsa -C "邮箱" 常用命令 git clone地址//克隆远程仓库 git clone -b分支名地址 阅读全文
posted @ 2020-08-28 10:51 淮生 阅读(411) 评论(0) 推荐(0)