会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
SWT
日不进,则退。
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
···
19
下一页
2022年6月30日
微信内置浏览器部分Andriod机型不兼容popstate监听事件(和页面交互能解决此问题---禁止返回需求),IOS没问题
摘要: //防止页面后退 history.pushState(null, null, document.URL); window.addEventListener('popstate', function () { history.pushState(null, null, document.URL); }
阅读全文
posted @ 2022-06-30 15:36 Action_swt
阅读(782)
评论(0)
推荐(0)
2022年6月14日
mac下载软件工具
摘要: https://www.macwk.com/soft/network
阅读全文
posted @ 2022-06-14 10:40 Action_swt
阅读(26)
评论(0)
推荐(0)
2022年6月13日
防止重复点击
摘要: /** * 防止重覆点击 * @param timer callBack * @returns 自执行函数 */ declare global { interface Window { lastTime: any } } export const preventCliks = (callBack:
阅读全文
posted @ 2022-06-13 19:00 Action_swt
阅读(65)
评论(0)
推荐(0)
2022年5月19日
背景模糊css设置
摘要: background: rgba(0, 0, 0, 0.6) -webkit-backdrop-filter: blur(3px) backdrop-filter: blur(3px) 效果:
阅读全文
posted @ 2022-05-19 12:38 Action_swt
阅读(52)
评论(0)
推荐(0)
2022年4月13日
请关闭防火墙和代理并重新运行(运行在手机端)
摘要: 检查电脑防火墙是否关闭 如果关闭了防火墙还是不行 看是否电脑开了vpn代理 记得关闭。 然后重新运行即可。
阅读全文
posted @ 2022-04-13 23:27 Action_swt
阅读(296)
评论(0)
推荐(0)
2022年4月8日
Vue3中composition Api中特点(存在的bug & 特征)
摘要: composition Api中 watch 问题1: watch监听 引用数据类型 reactive 代理的数据时。 newVal 和 oldVal 值一样,无法正确获得oldVal。 解决办法:将引用数据类型拆分为基本数据类型 , 即通过 ref 代理的数据作为监听源数据。 问题2: watch
阅读全文
posted @ 2022-04-08 00:10 Action_swt
阅读(51)
评论(0)
推荐(0)
2022年4月7日
Proxy构造函数,属性代理
摘要:
阅读全文
posted @ 2022-04-07 22:52 Action_swt
阅读(20)
评论(0)
推荐(0)
file文件转换为二进制数据
摘要: const beforeUpload = file => { var reader = new FileReader(); reader.readAsDataURL(file); //转化二进制流,异步方法 reader.onload = function(){ //完成后this.result为二
阅读全文
posted @ 2022-04-07 16:34 Action_swt
阅读(3336)
评论(0)
推荐(0)
2022年4月6日
## react mac上安装taro
摘要: # 使用 npm 安装 CLI $ npm install -g @tarojs/cli # OR 使用 yarn 安装 CLI $ yarn global add @tarojs/cli # OR 安装了 cnpm,使用 cnpm 安装 CLI $ cnpm install -g @tarojs/
阅读全文
posted @ 2022-04-06 23:41 Action_swt
阅读(246)
评论(0)
推荐(0)
2022年4月2日
新建tag
摘要: 创建附注标签( tag ) $ git tag -a tagName -m "说明" 解释:创建附注标签时,参数-a即annotated的缩写,指定标签类型,后附标签名。参数m指定标签说明,说明信息会保存在标签对象中。 查看 所有创建的 tags $ git tag 推送 创建的 tags $ gi
阅读全文
posted @ 2022-04-02 15:07 Action_swt
阅读(46)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
···
19
下一页
公告