chrome 控制台引入 jquery

1
2
3
4
var script = document.createElement('script')
script.setAttribute("type","text/javascript")
script.setAttribute("src", 'http://ajax.microsoft.com/ajax/jquery/jquery-1.4.min.js')
document.getElementsByTagName("head")[0].appendChild(script)