📜  e.stopPropagation() 未按预期工作 - Javascript 代码示例

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

代码示例1
// this works like charm
function DownloadAsset(AssetId, e) {

    if (!e) var e = window.event
    e.cancelBubble = true;
    if (e.stopPropagation) e.stopPropagation();

    // your ajax call
    $.ajax({....})
}