2022-05-29
The best and most beautiful things in the world cannot be seen, nor touched… but are felt in the heart. — Helen Keller
今天属于Cyndi
The use of templater
- https://shbgm.ca/obsidian/docs/how-to-use-templater-js-scripts
- https://github.com/SilentVoid13/Templater/discussions/187
- https://silentvoid13.github.io/Templater/commands/execution-command.html
调试方法
在obsidian中按Ctrl+Shift+I呼出调试窗口,在console页签中可以直接获取到obsidian.d.ts中的API。
例如:
另请参阅generic中关于Javascript代码段的调用,代码段返回值默认无输出,其结果存储在
tR
变量中,若想输出,应将其写入tR
变量1。
Javascript语法参考: