使多行JavaScript字符串看起来不错-JavaScript开发

时间:2021-05-26 04:21:47
【文件属性】:
文件名称:使多行JavaScript字符串看起来不错-JavaScript开发
文件大小:20KB
文件格式:ZIP
更新时间:2021-05-26 04:21:47
JavaScript Miscellaneous theredoc一个小的模板标记功能,可将多行ES字符串模板中的前导缩进。 如果第一行和最后一行只是空白,它还会删除第一行和最后一行。 如果您使用模板字符串编写heredocs,则使用Theredoc一个小模板标签功能,可将多行ES字符串模板中的前导缩进。 如果第一行和最后一行只是空白,它还会删除第一行和最后一行。 如果您使用模板字符串编写heredocs,则应尝试使用Theredoc对其进行标记,以使它们整理整齐! 安装$ npm install theredoc用法const theredoc = require('theredoc')function some(){function deep(){function nested(){function code(){console.log(theredoc`
【文件预览】:
theredoc-main
----.gitignore(14B)
----package.json(826B)
----package-lock.json(66KB)
----.travis.yml(59B)
----index.js(1KB)
----test.js(1KB)
----README.md(4KB)

网友评论