web
文章平均质量分 52
springingy
帅死 士过河
展开
-
radio触发两次及取消选中
点击label的默认行为是: 点击label => 点击input[type=radio] => 执行勾选。如果监听label的click事件,会触发两次, 这不是捕获冒泡的问题,而是。如果直接取消, 默认行为导致radio又勾选上了。label阻止默认行为将导致,radio不能勾选。原创 2024-01-12 02:00:34 · 858 阅读 · 1 评论 -
webstrom 多光标
如下的效果是不是很方便。1. 这个不叫光标 cursor, 而是叫 caret 输入符。2.Set multiple cursorsUsing Alt with the mouse click you can set the cursors in all places you need (please note that you may always change原创 2017-03-22 05:21:19 · 5235 阅读 · 0 评论