📜  事件停止传播不起作用 - 无论代码示例

📅  最后修改于: 2022-03-11 14:58:41.508000             🧑  作者: Mango

代码示例1
// 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({....})
}