07 2021 档案

摘要:window.addEventListener('scroll', this.handleScroll); document.removeEventListener('scroll', this.handleScroll); handleScroll() { console.log('11'); / 阅读全文
posted @ 2021-07-30 10:17 握梅又闻花 阅读(310) 评论(0) 推荐(0)
摘要:const originalHeight = document.documentElement.clientHeight || document.body.clientHeight; let vh = originalHeight * 0.01; document.documentElement.s 阅读全文
posted @ 2021-07-30 10:14 握梅又闻花 阅读(183) 评论(0) 推荐(0)
摘要:touchstart touchmove touchend 阅读全文
posted @ 2021-07-30 10:11 握梅又闻花 阅读(36) 评论(0) 推荐(0)
摘要:window.onresize = () => { return (() => { //键盘弹起与隐藏都会引起窗口的高度发生变化 const resizeHeight = document.documentElement.clientHeight || document.body.clientHei 阅读全文
posted @ 2021-07-30 10:10 握梅又闻花 阅读(105) 评论(0) 推荐(0)
摘要:1、为了尽可能的提高css、js加载速度,我们可以将文件压缩 2、.js是JavaScript 源码文件, .min.js是压缩版的js文件。vue.js 开发环境版本,包含了有帮助的命令行警告。vue.min.js 生产环境版本,优化了尺寸和速度。jquery.js是完整的未压缩的jquery库, 阅读全文
posted @ 2021-07-01 13:46 握梅又闻花 阅读(1407) 评论(0) 推荐(0)