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

使用这个库加载lottie的json文件,TypeError: eval is not a function #51

Open
wukongyang opened this issue Jul 10, 2024 · 4 comments

Comments

@wukongyang
Copy link

image
之前的issues中的相关贴,没有看到如何解决

@renpeng11
Copy link

+1

@Cinea4678
Copy link

Lottie动画里如果有图中这样的js代码,那这个动画就播放不了了:

image

作为一个码农,我也很无语,动画是设计发给我的,让她别用expression,她说她是用工具从其他格式转换的Lottie动画,最后的结果是换用apng,动画大小从60KB提升到2.4MB!都怪微信禁用eval,老实说微信哪怕monkey patch一下eval,检测一下敏感操作,都没有现在一刀切这么坏!

@happy-func
Copy link

+1

@GenerQAQ
Copy link

expression 表达式特性是不支持的,因此需要再导出 JSON 文件时禁用相关特性。
image

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

No branches or pull requests

5 participants