Skip to content

Instantly share code, notes, and snippets.

@abearxiong
Created May 3, 2019 04:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save abearxiong/84aabcb6118d20b86d3c9e87a2fa4651 to your computer and use it in GitHub Desktop.
Save abearxiong/84aabcb6118d20b86d3c9e87a2fa4651 to your computer and use it in GitHub Desktop.
js

执行字符串类型的函数代码

Known

  1. 使用eval("要执行的字符串")
  2. 使用new Function("要执行的字符串")
  3. setTimeOut("要执行的字符串",500)
  4. setInterval("要执行的字符串",500)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment