📌  相关文章
📜  测试 jquery 是否有效 - Javascript 代码示例

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

代码示例1
/* Answer to: "test if jquery works" */

window.onload = function() {
    if (window.jQuery) {  
        // jQuery is loaded  
        console.log("jQuery has loaded!");
    } else {
        // jQuery is not loaded
        console.log("jQuery has not loaded!");
    }
}