04 2022 档案

摘要:方法一: onshow 方法中调用接口数据, 方法二: 直接根元素 v-if , v-if 会刷新页面 阅读全文
posted @ 2022-04-29 09:08 智商感人 阅读(594) 评论(0) 推荐(0)
摘要:preferences【首选项】 ⇒ settings【设置】 ⇒ 搜索:editor:word ⇒ 找到 word-wrap 选项,设置为 on即可。 阅读全文
posted @ 2022-04-22 08:51 智商感人 阅读(168) 评论(0) 推荐(0)
摘要:// 第一版 // 缺点:函数的 this 指向了 window,应该指向 container function debounce1(fn, wait) { let timer; return function () { clearTimeout(timer); timer = setTimeout 阅读全文
posted @ 2022-04-18 15:48 智商感人 阅读(36) 评论(0) 推荐(0)
摘要:1. 插槽组件:在 slot 标签上绑定属性,作为 slot参数传递出去 <template> <div> <div class="slot-template"> <slot :data="list"></slot> </div> </div> </template> <script> export 阅读全文
posted @ 2022-04-18 09:46 智商感人 阅读(1350) 评论(0) 推荐(0)
摘要:1. draggable标签上加 :filter属性, 属性值为不可选中的元素对应的类名 2. 在不可选中元素上增加一个与第一步对应的类名 <draggable v-model="myArray" :filter=".undraggable" > <transition-group> <div v- 阅读全文
posted @ 2022-04-15 14:23 智商感人 阅读(3185) 评论(0) 推荐(0)
摘要:折叠方式: #region 和 #endrigion // #region 代码块备注222 ... // #endregion 示例: 折叠前: // #region 代码块备注222 some code 。。。 some code 。。。 some code 。。。 some code 。。。 阅读全文
posted @ 2022-04-09 16:52 智商感人 阅读(1967) 评论(0) 推荐(0)
摘要:先看是否安装过 git --version 如果没有出现版本号,则说明没有安装过,则安装它! 安装 yum -y install git 安装成功: Installed: git.x86_64 0:1.8.3.1-23.el7_8 Dependency Installed: perl-Error.n 阅读全文
posted @ 2022-04-09 00:35 智商感人 阅读(57) 评论(0) 推荐(0)
摘要:like 关键字 结合百分号% 实现 模糊查询 原本精确查询: 匹配 title 为 testadgddsdf 的数据 SELECT * FROM table WHERE title='testadgddsdf' 现在模糊查询: 匹配title 字段包以 tes 为起始的数据: SELECT * F 阅读全文
posted @ 2022-04-08 14:22 智商感人 阅读(579) 评论(0) 推荐(0)
摘要:// 跨域 app.all('*', function (req, res, next) { res.header('Access-Control-Allow-Origin', '*'); res.header('Access-Control-Allow-Headers', 'Content-Typ 阅读全文
posted @ 2022-04-07 20:02 智商感人 阅读(187) 评论(0) 推荐(0)
摘要:文件目录: public js test.js src app.js ... 静态目录设置方式: // 访问路径加上前缀路由: app.use('/aa',express.static(path.join(__dirname, '../public'))) // 访问:http://localhos 阅读全文
posted @ 2022-04-07 19:50 智商感人 阅读(496) 评论(0) 推荐(0)
摘要:const dataMiniURLBase64 = reqData.miniURL.replace(/^data:image\/\w+;base64,/, '') const dataMiniBuffer = Buffer.from(dataMiniURLBase64, 'base64') //把b 阅读全文
posted @ 2022-04-07 15:22 智商感人 阅读(914) 评论(0) 推荐(0)
摘要:原因: 换行符、空格也是一个字符,会占据一个位置,导致空白出现。 解决: 换行的元素进行浮动 换行元素的父元素设置font-size: 0;, 换行元素再正常设置font-size: 13px;之类的 欢迎补充。 例子: * { margin: 0; padding: 0; } .father { 阅读全文
posted @ 2022-04-07 14:07 智商感人 阅读(133) 评论(0) 推荐(0)
摘要:watch:{ "$route":function(to,from){ console.log(to.path) } } 阅读全文
posted @ 2022-04-04 17:40 智商感人 阅读(51) 评论(0) 推荐(0)