gpt4 book ai didi

javascript - 构建 XD 插件时使用 `eval`

转载 作者:行者123 更新时间:2023-11-29 16:33:38 24 4
gpt4 key购买 nike

是否可以使用 eval 或类似函数来执行 XD 插件文件内的代码?

最佳答案

来自Adobe XD Platform ...

No. eval and similar methods of executing code are disabled. This is for a variety of reasons, including security-related concerns.

This doesn’t, however, prevent you from running arbitrary code – it just means you have to get inventive. Before considering this path, however, be sure to consider whether or not you really need to run arbitrary code, as there may be considerable risks to doing so.

一些选项:

鸣谢: Kerri Shotts来自 Adob​​e。

关于javascript - 构建 XD 插件时使用 `eval`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53324284/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com