jQuery实现鼠标双击内容该内容消失

 时间:2026-04-26 04:01:12

1、新建HTML文件

jQuery实现鼠标双击内容该内容消失

2、引入jquery.min.js文件

jQuery实现鼠标双击内容该内容消失

3、创建HTML内容

jQuery实现鼠标双击内容该内容消失

4、创建双击事件

jQuery实现鼠标双击内容该内容消失

5、双击隐藏自身内容

jQuery实现鼠标双击内容该内容消失

6、预览如图

jQuery实现鼠标双击内容该内容消失

7、鼠标双击哪行,哪行消失附上源码

<script>

$(function(){

$("p").dblclick(function(){

$(this).hide()

})

});

</script>

<body>

双击鼠标左键1

双击鼠标左键2

双击鼠标左键3

</body>

jQuery实现鼠标双击内容该内容消失

jQuery实现鼠标双击内容该内容消失

jQuery实现鼠标双击内容该内容消失

  • jquery实现点击按钮清空元素内容
  • jquery怎么设置内容和属性
  • jquery怎么使用
  • jquery添加内容
  • jquery的parseJSON
  • 热门搜索
    维生素a的作用及功能 zero什么意思 peek是什么材料 放荡不羁是什么意思 养殖业什么最好养 维生素e可以擦脸吗 tcs是什么意思 开户许可证是什么 苟且偷生是什么意思 海苔是什么