📜  在浏览器代码中加载 jquery - Javascript 代码示例

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

代码示例1
var jq = document.createElement('script');
jq.src = "https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js";
document.getElementsByTagName('head')[0].appendChild(jq);
// ... give time for script to load, then type (or see below for non wait option)
jQuery.noConflict();