摘要: 利用form表单reset方法清空 阅读全文
posted @ 2023-11-09 20:21 Action_swt 阅读(82) 评论(0) 推荐(0) 编辑
摘要: const base64ToBlob = (base64Data: string, contentType: string) => { const byteCharacters = atob(base64Data) const byteArrays = [] for (let offset = 0; 阅读全文
posted @ 2023-10-25 11:45 Action_swt 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 解决:brew install pngquant 然后 重新拉依赖 or 更新 image-webpack-loader 包 (不然会报 找不到.....png 图片) 阅读全文
posted @ 2023-05-11 17:36 Action_swt 阅读(447) 评论(0) 推荐(0) 编辑
摘要: document.querySelector('a').onclick = (event) => { event = event || window.event event.preventDefault(); event.returnValue = false; } 阅读全文
posted @ 2023-04-24 15:33 Action_swt 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 利用 transform-origin: left top ,以左上角为基点缩放。 position: absolute; right: -1px; top: -8px; height: 28px; padding: 0 8px; background: #BBBBBB; border-radius 阅读全文
posted @ 2023-03-30 11:47 Action_swt 阅读(52) 评论(0) 推荐(0) 编辑
摘要: const setPageStyle = (pageStyle: { [key: string]: string|number }) => { Taro.setPageStyle({ style: pageStyle }) } setPageStyle({ // overflow: 'hidden' 阅读全文
posted @ 2023-03-22 21:48 Action_swt 阅读(182) 评论(0) 推荐(0) 编辑
摘要: vue2中 原生css >>> .el-card__header saas\scss ::v-deep .el-card__header less /deep/ .el-card__header vue3中 :deep() { //styles } ::deep() { //styles } 阅读全文
posted @ 2023-03-14 14:11 Action_swt 阅读(180) 评论(0) 推荐(0) 编辑
摘要: > running pre-commit hook: lint-staged'lint-staged' is not recognized as an internal or external command,operable program or batch file. pre-commit ho 阅读全文
posted @ 2022-11-29 14:24 Action_swt 阅读(338) 评论(0) 推荐(0) 编辑
摘要: IOS默认播放大屏播放,安卓播放可以同时播放多个,因为IOS默认是大屏播放所以不存在同时播放多个视频的现象。需求1、安卓一次播放一个视频,播放一个其中一个停止播放。 const videoList = document.getElementsByTagName("video"); const vid 阅读全文
posted @ 2022-10-19 13:59 Action_swt 阅读(249) 评论(0) 推荐(0) 编辑
摘要: https://developers.weixin.qq.com/doc/oplatform/Mobile_App/WeChat_H5_Launch_APP.html http://t.zoukankan.com/Can-daydayup-p-15404964.html 最后排查原因服务号欠费。。。 阅读全文
posted @ 2022-10-12 18:55 Action_swt 阅读(41) 评论(0) 推荐(0) 编辑