📜  点击孩子阻止点击父母 - Javascript代码示例

📅  最后修改于: 2022-03-11 15:01:27.556000             🧑  作者: Mango

代码示例1
// Use `.stopPropagation();`, even if you're not using JQuery
$("#clickable a").click(function(e) {
   e.stopPropagation();
});