摘要: transform: rotate(90deg); width: 100vh; height: 100vw; transform-origin: 50vw 50vw; 设置旋转中心,如果元素不是正方形,必须加这个,要不元素大小会发生变化,原因不知道 transform不适用于行内元素 阅读全文
posted @ 2021-12-07 14:14 郭大蛋子 阅读(174) 评论(0) 推荐(0) 编辑
摘要: let re = /[^\u4e00-\u9fa5]/; if (re.test(this.data.studentName)) { wx.showToast({ title: '孩子姓名必须是汉字', icon: 'none' }) return } 阅读全文
posted @ 2021-11-24 17:01 郭大蛋子 阅读(411) 评论(0) 推荐(0) 编辑
摘要: D:\project\parent_web\node_modules\node-sass\vendor\win32-x64-83\binding.node' 或者 no such 或者 rename 或者node-scss 在npm时报错,可以卸载node-modules ,多删几次 耐心一点 阅读全文
posted @ 2021-11-17 18:30 郭大蛋子 阅读(47) 评论(0) 推荐(0) 编辑
摘要: transform scale缩放实际尺寸不变,就是页面的dom看着小了,实际不变,占据的大小不变,只是居中了 zoom缩放会影响实际占位大小 阅读全文
posted @ 2021-11-11 14:08 郭大蛋子 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 100vh 包括浏览器地址栏和底部的工具栏,a56爆大奖在线娱乐设置100%就可以, 设置100%以后ios底部的黑边边/安全距离还存在 padding-bottom: constant(safe-area-inset-bottom); ///兼容 IOS<11.2/ padding-bottom: env(saf 阅读全文
posted @ 2021-11-10 11:36 郭大蛋子 阅读(1906) 评论(0) 推荐(0) 编辑
摘要: getDuration(file) { let url = this.getSrc(file); let audioElement = new Audio(url); audioElement.addEventListener("loadedmetadata", () => { var time = 阅读全文
posted @ 2021-11-08 15:55 郭大蛋子 阅读(1593) 评论(1) 推荐(0) 编辑
摘要: const url = "https://yunapi.aixueshi.top/api/Common/Download?encryption=login_token_3272015928c7412bb53d667bd0af8c65|20210909_6f2d67f55d2743268d62c47a 阅读全文
posted @ 2021-09-10 17:06 郭大蛋子 阅读(385) 评论(0) 推荐(0) 编辑
摘要: var axiosCancel = []; config.cancelToken = new axios.CancelToken(cancel => { axiosCancel.push({ cancel }) }) if("未登录"){ axiosCancel.forEach((ele, inde 阅读全文
posted @ 2021-03-15 14:23 郭大蛋子 阅读(101) 评论(0) 推荐(0) 编辑