检测是否引入jQuery

if (typeof jQuery != 'undefined') {
    document.write("jquery已经被加载");
} else {
    document.write("jquery没有被加载");
}
原文地址:https://www.cnblogs.com/phpfensi/p/7298513.html