📜  javascript 如果已加载 jquery - Javascript 代码示例

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

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