摘要:
// 第一版 // 缺点:函数的 this 指向了 window,应该指向 container function debounce1(fn, wait) { let timer; return function () { clearTimeout(timer); timer = setTimeout 阅读全文
posted @ 2022-04-18 15:48
智商感人
阅读(33)
评论(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
智商感人
阅读(1340)
评论(0)
推荐(0)