我可以在路由中使用eval吗? #17135
Answered
by
TonyRL
HeliumOctahelide
asked this question in
Q&A
我可以在路由中使用eval吗?
#17135
-
我开发了一个NUXT.JS站点的路由(magic.wizards.com),它的所有数据都放在__NUXT__变量中,是一个压缩混淆过的IIFE。由于用文本的方式解析这个IIFE太过费劲,我选择直接用eval来解析这个IIFE。这种做法是可行或推荐的吗?会不会产生安全风险? |
Beta Was this translation helpful? Give feedback.
Answered by
TonyRL
Oct 19, 2024
Replies: 1 comment 1 reply
-
You can use jsdom |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
HeliumOctahelide
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use jsdom