https://csjiabin.github.io/
hjb, csjiabin, csjiabin Blog, 黄佳滨的博客, huangjiabin, 黄佳滨, html, css, javascript, js, JavaScript, Node, node, nodejs, h5, html5, 小程序, vue
摘要:
注意,只能是在bind-click事件中处理!在onClick事件中无法阻止冒泡的! 事件中event.stopPropagation(); //阻止了事件冒泡,但不会阻击默认行为event.preventDefault(); // 不阻击事件冒泡,但阻击默认行为return false; //阻止
阅读全文
posted @ 2016-12-15 17:29
淡然丶blue
阅读(237)
推荐(0)
编辑
https://csjiabin.github.io/
hjb, csjiabin, csjiabin Blog, 黄佳滨的博客, huangjiabin, 黄佳滨, html, css, javascript, js, JavaScript, Node, node, nodejs, h5, html5, 小程序, vue