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

标签 javascript plugins eval adobe-xd

是否可以使用 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/

相关文章:

c# - 从插件访问 C# 中的第三方命名空间

python - python SyntaxError : unexpected EOF while parsing

javascript - Javascript 中 Tcl 的 'uplevel' 是什么?

javascript - 地址栏中的谷歌翻译

java - Eclipse插件: Copy File

javascript - 嵌套在 JSON 响应中的值未被解析

javascript - PhoneGap Android LowLatencyAudio 插件不起作用

python - 在评估列表时,如何防止Python的 eval() 使用 "..."?

Javascript函数定义

javascript - 我的网站在我的 Chrome 上不断崩溃