Created
February 7, 2015 04:14
-
-
Save ziluo/44dba0c0a0989d3d33eb to your computer and use it in GitHub Desktop.
全局执行
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var globalEval = function(text) { | |
var s = doc.createElement('script'); | |
s.appendChild(doc.createTextNode(text)) | |
doc.querySelector('head').appendChild(s) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment