方法1:
var script = document.createElement("script")
script.type = "text/javascript"
script.src = "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"
document.body.appendChild(script)
方法2:
var script = document.createElement("script")
script.type = "text/javascript"
script.src = "//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"
script.onload = function(){console.log("jQuery is ready!")}
document.body.appendChild(script)