会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
SWT
日不进,则退。
博客园
首页
新随笔
联系
订阅
管理
随笔 - 180
文章 - 0
评论 - 2
阅读 -
13万
04 2023 档案
禁掉 a 标签浏览器默认行为
摘要:document.querySelector('a').onclick = (event) => { event = event || window.event event.preventDefault(); event.returnValue = false; }
阅读全文
posted @
2023-04-24 15:33
Action_swt
阅读(14)
评论(0)
推荐(0)
编辑
公告
昵称:
Action_swt
园龄:
5年5个月
粉丝:
2
关注:
0
+加关注
<
2025年3月
>
日
一
二
三
四
五
六
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
随笔分类
ant-design(3)
Browser(3)
CSS(16)
element UI踩坑(9)
GIT(5)
HTML(3)
JavaScript(35)
JSONP(1)
js正则(6)
Taro(2)
TypeScript(5)
uin-App(20)
Vue(12)
vue3(1)
Webpack(2)
web前端开发(1)
动画CSS3(1)
工具(可视化,UI...)(8)
浏览器兼容问题以及解决(1)
前端遇到的坑(1)
前后端交互(ajax,axios,fetch...)(3)
微信小程序(8)
支付宝小程序(2)
更多
随笔档案
2024年6月(1)
2023年11月(1)
2023年10月(1)
2023年5月(1)
2023年4月(1)
2023年3月(3)
2022年11月(1)
2022年10月(2)
2022年9月(2)
2022年7月(2)
2022年6月(3)
2022年5月(1)
2022年4月(7)
2022年3月(10)
2022年2月(1)
2022年1月(4)
2021年12月(1)
2021年11月(2)
2021年10月(2)
2021年7月(4)
2021年6月(14)
2021年5月(1)
2021年4月(1)
2021年3月(3)
2021年2月(4)
2021年1月(3)
2020年12月(2)
2020年11月(3)
2020年10月(7)
2020年9月(9)
2020年8月(17)
2020年7月(20)
2020年6月(8)
2020年5月(13)
2020年4月(24)
更多
阅读排行榜
1. 浏览器报错 Refused to apply style from 'http://******' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.(12387)
2. js获取自动获取本电脑IP(5730)
3. 小程序Component is not found in path "path/to/vant-weapp/dist/button/index"(组件路径不对)(4514)
4. uniapp使用uni.setStorageAsync刷新页面数据丢失问题(4360)
5. uniapp获取DOM位置信息(准确的来说应该是获取节点信息)(4104)
评论排行榜
1. uniapp返回使用uni.navigateBack()【或者页面不是公共头部的返回按钮】,页面效果不想返回上一页。(1)
2. 小程序Component is not found in path "path/to/vant-weapp/dist/button/index"(组件路径不对)(1)
推荐排行榜
1. 后端反的base64图片流,前端渲染(1)
2. uniapp组件scroll-view实现双联动。(demo)(1)
3. element UI表格组件、点击某行、某行高亮显示(1)
4. 小程序Component is not found in path "path/to/vant-weapp/dist/button/index"(组件路径不对)(1)
5. 原生方法获取select中选中的option(1)
最新评论
1. Re:uniapp返回使用uni.navigateBack()【或者页面不是公共头部的返回按钮】,页面效果不想返回上一页。
uni.navigateBack可解决
--逻辑与思维
2. Re:小程序Component is not found in path "path/to/vant-weapp/dist/button/index"(组件路径不对)
原来这样,坑死我了,多谢
--Karain
点击右上角即可分享