Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ajax] 20.eval 是做什么的? #81

Open
qiilee opened this issue Sep 29, 2019 · 0 comments
Open

[ajax] 20.eval 是做什么的? #81

qiilee opened this issue Sep 29, 2019 · 0 comments
Labels

Comments

@qiilee
Copy link
Member

qiilee commented Sep 29, 2019

答案:它的功能是把对应的字符串解析成 JS 代码并运行;

解析:应该避免使用 eval,不安全,非常耗性能(2 次,一次解析成 js 语句,一次执行)。

@qiilee qiilee added the Ajax label Sep 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant