编程语言/sketch/getSelectedDocument:修订间差异
来自康健生活
| 第1行: | 第1行: | ||
== 引言 == | == 引言 == | ||
执行方法。 | |||
获取当前选中的 Sketch 文件 | 获取当前选中的 Sketch 文件 | ||
{{leftrightflex|<syntaxhighlight lang="javascript"> | {{leftrightflex|<syntaxhighlight lang="javascript"> | ||
| 第65行: | 第66行: | ||
style: [Style] } ] } | style: [Style] } ] } | ||
</pre>}}}} | </pre>}}}} | ||
其中 swatches、sharedLayerStyles、sharedTextStyles 分别是控件中的内容: | |||
[[文件:Sketch-getSelectedDocument.png|600px|无框|无|Sketch-getSelectedDocument打印的内容]] | |||
2021年6月27日 (日) 07:47的版本
引言
执行方法。 获取当前选中的 Sketch 文件 模板:Leftrightflex 其中 swatches、sharedLayerStyles、sharedTextStyles 分别是控件中的内容:

No categories