if (typeof jQuery != ‘undefined‘) { document.write("jquery已经被加载"); } else { document.write("jquery没有被加载"); }
检测是否引入jQuery
原文:http://www.cnblogs.com/phpfensi/p/7298513.html