📌  相关文章
📜  如何检查是否加载了 jquery - Javascript 代码示例

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

代码示例3
window.onload = function() {
    if (window.jQuery) {  
        // jQuery is loaded  
        alert("Yeah!");
    } else {
        // jQuery is not loaded
        alert("Doesn't Work");
    }
}