上一页 1 2 3 4 5 6 ··· 33 下一页
摘要: 宫格布局第一种:.template-list { width: 100%; border-radius: 4px; height: 202px; display: grid; grid-template-columns: repeat(4, 94px); gap: 8px; overflow-y: 阅读全文
posted @ 2022-08-25 15:00 创业男生 阅读(275) 评论(0) 推荐(0) 编辑
摘要: import { groupBy } from 'lodash'computed: { groupRecords() { const records = this.dataRecords .map( data => { const date = moment(this.tabActive 1 ? d 阅读全文
posted @ 2022-07-18 16:16 创业男生 阅读(573) 评论(0) 推荐(0) 编辑
摘要: navigator.sendBeacon()方法可用于通过HTTP将少量数据异步传输到Web服务器。 使用sendBeacon() 方法会使用户代理在有机会时异步地向服务器发送数据,同时不会延迟页面的卸载或影响下一导航的载入性能。这就解决了提交分析数据时的所有的问题:数据可靠,传输异步并且不会影响下 阅读全文
posted @ 2022-07-12 12:14 创业男生 阅读(884) 评论(0) 推荐(0) 编辑
摘要: 一、Safari下问题说明 在 Safari 浏览器下,无论是桌面端 Safari,还是 iOS Safari,visibilitychange 事件不总是触发的。 对于窗口最小化,Tab 隐藏等行为 visibilitychange 事件是正常的,但是如果是点击页面某个链接发生的当前页导航跳转,则 阅读全文
posted @ 2022-07-12 12:01 创业男生 阅读(2451) 评论(0) 推荐(0) 编辑
摘要: 1. ?? 非空运算符 在 JS 中,?? 运算符被称为非空运算符。如果第一个参数不是 null/undefined(译者注:这里只有两个假值,但是 JS 中假值包含:未定义 undefined、空对象 null、数值 0、空数字 NaN、布尔 false,空字符串’’,不要搞混了),将返回第一个参 阅读全文
posted @ 2021-11-22 18:35 创业男生 阅读(43) 评论(0) 推荐(0) 编辑
摘要: <template> <div class="count-to-wrapper"> <slot name="left"/> <p class="content-outer"><span :class="['count-to-count-text', countClass]" :id="counter 阅读全文
posted @ 2021-10-25 20:10 创业男生 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 需求: 从接口动态获取子菜单数据 动态加载 要求只有展开才加载子菜单数据 支持刷新,页面显示正常 思路: 一开始比较乱,思路很多。想了很多 首先路由和菜单共用一个全局route, 数据的传递也是通过store的route, 然后要考虑的俩个点就是一个就是渲染菜单和加载路由,可以在导航首位里处理路由, 阅读全文
posted @ 2021-10-15 19:01 创业男生 阅读(1969) 评论(2) 推荐(2) 编辑
摘要: $(function () { const models = [ {id: 1, title: 'hello', parent: 0}, {id: 3, title: 'hello', parent: 1}, {id: 4, title: 'hello', parent: 3}, {id: 5, t 阅读全文
posted @ 2021-10-08 19:51 创业男生 阅读(87) 评论(0) 推荐(0) 编辑
摘要: <template> <div :id="`drawer_container_${id}`"> <el-drawer :id="id+'_drawer'" :wrapperClosable="false" @close="onClose" v-if="isShowDraw" :visible.syn 阅读全文
posted @ 2021-09-23 18:22 创业男生 阅读(4585) 评论(0) 推荐(0) 编辑
摘要: vue官网风格 文档教程类型 https://vuepress.vuejs.org/zh/ 阅读全文
posted @ 2021-01-05 14:06 创业男生 阅读(77) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 33 下一页