We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
html与str互相转换。
在使用js模板的时候,我们需要将一段html模板以字符串的形式引入。
写字符串里主流的方法分三种,分别是 ,数组,+
反斜杠的模式我不怎么赞同,因为代码压缩的时候字符串是不压缩的! 所以html2str就是针对数组模式和+号模式进行转换, 在代码压缩的时候都会把它们合并成一行字符串。