Skip to content

去掉代码中的eval()调用#281

Open
mytharcher wants to merge 1 commit into
BaiduFE:devfrom
mytharcher:dev
Open

去掉代码中的eval()调用#281
mytharcher wants to merge 1 commit into
BaiduFE:devfrom
mytharcher:dev

Conversation

@mytharcher

Copy link
Copy Markdown

改为(new Function ('return ' + xxx))()的方式。在使用外围大闭包进行更进一步内部代码压缩时,避免出现由于eval存在压缩器无法完成名字压缩的情况。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant