Top
Fork me on Gitee
上一页 1 2 3 4 5 6 ··· 10 下一页
摘要: setTimeout、setInterval 属于定时触发器线程属于 macrotask,它的回调会受到GUI渲染、事件触发、http请求、等的影响。所以这两个不适合做精准的定时。最好的方法是定时矫正,用 new Date(targetDate:Date - new Date ) 格式化成你需要的时 阅读全文
posted @ 2022-08-30 16:29 lisashare 阅读(1014) 评论(0) 推荐(0) 编辑
摘要: keep-alive 官方文档 keep-alive 是系统自带的一个组件 主要用于保留组件状态或避免重新渲染(提升性能)。 Props: include - 字符串或正则表达式。只有名称匹配的组件会被缓存。 exclude - 字符串或正则表达式。任何名称匹配的组件都不会被缓存。 <!-- 逗号分 阅读全文
posted @ 2022-08-30 16:14 lisashare 阅读(58) 评论(0) 推荐(0) 编辑
摘要: /** * @param {string} path * @returns {Boolean} */ export function isExternal (path) { return /^(https?:|mailto:|tel:)/.test(path) } /** * @param {str 阅读全文
posted @ 2022-07-14 11:25 lisashare 阅读(196) 评论(0) 推荐(0) 编辑
摘要: 在 vue-cli 移动项目中,使用 vant 底部切换,例如:/mine 和 /mine/collect 都需要"我的"高亮,点击"我的",回到 /mine 页面。使用vant文档中的 tabbar change 方法,点击"我的"不能触发 change 事件,所以可以点击每个 item 实现。刷 阅读全文
posted @ 2022-05-06 17:54 lisashare 阅读(847) 评论(0) 推荐(0) 编辑
摘要: 安装node, vue全局环境可以参考对应的官方文档,这里我们直接创建项目。 创建一个项目 vue create hello-vue default (babel, eslint) 默认套餐,提供 babel 和 eslint 支持。 Manually select features 自己去选择需要 阅读全文
posted @ 2022-04-08 18:28 lisashare 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 原因:html、body设置了 height: 100% 的自适应布局后,高度跟随屏幕的可用高度改变而改变导致的。 解决办法: 1、不使用 fixed 定位,使用替代方案(推荐): a:使用 position:absolute; overflow-y:scroll; b:使用 display:fle 阅读全文
posted @ 2022-03-03 17:45 lisashare 阅读(1984) 评论(0) 推荐(0) 编辑
摘要: js -- 获取两个日期间的所有日期 js -- 将毫秒转化成天时分秒的时间格式 js -- 常用正则验证 validate.js export function sortASCII (obj) { let newObj = {} Object.keys(obj).sort().forEach(k 阅读全文
posted @ 2022-02-28 11:57 lisashare 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 微信小程序跳转app方案研究 调研结果如下: 1、利用官方api,小程序关联app 微信开放文档-功能介绍 https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/launchApp.html 微信开放文档-打开 阅读全文
posted @ 2022-02-17 11:53 lisashare 阅读(1360) 评论(0) 推荐(0) 编辑
摘要: 参考文档-vue3 参考文档-arco.design 参考文档-ruoyi <div v-for="item of AIcons" :key="item" @click="handleClipboard(generateAIconCode(item), $event)"> <a-tooltip pl 阅读全文
posted @ 2021-12-21 18:17 lisashare 阅读(1014) 评论(0) 推荐(0) 编辑
摘要: 问题一: 使用百度APP打开H5页面,发现使用position: fixed定位在页面上的按钮显示出来后又消失了,原因是百度对position: fixed的标签,如果其中带有<img>标签会被定义成广告,进而给移除了。 解决方法: 将按钮切成图片,放到伪类中使用 background-image: 阅读全文
posted @ 2021-12-15 11:38 lisashare 阅读(273) 评论(0) 推荐(0) 编辑
摘要: 100 "continue" 101 "switching protocols" 102 "processing" 200 "ok" 201 "created" 202 "accepted" 203 "non-authoritative information" 204 "no content" 2 阅读全文
posted @ 2021-09-25 10:34 lisashare 阅读(52) 评论(0) 推荐(0) 编辑
摘要: 文本选择颜色 ::selection { background-color: #616161; color: #e0e0e0; } 首字下沉 article p:first-of-type::first-letter { color: #616161; float: left; font-famil 阅读全文
posted @ 2021-08-11 17:37 lisashare 阅读(39) 评论(0) 推荐(0) 编辑
摘要: var stime = '2021-05-20'; //开始日期 var etime = '2021-05-24'; //结束日期 getdiffdate(stime,etime); //获取两日期之间日期列表函数 function getdiffdate(stime,etime){ //初始化日期 阅读全文
posted @ 2021-07-23 19:04 lisashare 阅读(1119) 评论(0) 推荐(0) 编辑
摘要: 正则表达式 MDN参考文档 var re = /ab+c/; var re = new RegExp("ab+c"); replace具体参数参考文档 str.replace(regexp|substr, newSubStr|function) 参考文档-replace()方法的第二个参数 阅读全文
posted @ 2021-05-17 15:05 lisashare 阅读(135) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>coordTransform</title> </head> <body> <h1>请按F12打开控制台查看结果</h1> <script src="coord 阅读全文
posted @ 2021-03-04 12:12 lisashare 阅读(1297) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页