笔记
井玉中
记录日常学习的知识点
展开
-
vantwapp在微信小程序中van-calendar 事件不响应
文档下:<van-calendar show="{{ show }}" bind:close="onClose" bind:confirm="onConfirm" />原创 2021-10-10 23:47:47 · 1116 阅读 · 0 评论 -
使用正则首字母大写
componentName.replace('/^\w/g', name => name.toUpperCase())原创 2020-11-16 15:43:52 · 1456 阅读 · 0 评论 -
js加载更多
一.js监听是否需要加载更多1.通过以下方法可以判断当前距离底部的距离,但是会执行多次,这里我们需要使用 throttlewindow.onscroll = () => { // 文档高度 const offsetHeight = document.documentElement.offsetHeight; // 屏幕高度 const screenHeight = window.screen.heigh原创 2020-10-13 15:05:42 · 378 阅读 · 0 评论