Skip to content

Commit be00aaa

Browse files
committed
Update javaScriptCodeStandards.md
1 parent 2e10e9c commit be00aaa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎javaScriptCodeStandards.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
3131
```
3232
##3. 字符串过长截断
33-
>摘自百度商业前端技术组:按一定长度截断字符串,并使用+运算符进行连接。分隔字符串尽量按语义进行,如不要在一个完整的名词中间断开。特别的,对于HTML片段的拼接,通过缩进,保持和HTML相同的结构,也可使用数组来进行拼接,相对+运算更容易调整缩进。
33+
>按一定长度截断字符串,并使用+运算符进行连接。分隔字符串尽量按语义进行,如不要在一个完整的名词中间断开。特别的,对于HTML片段的拼接,通过缩进,保持和HTML相同的结构,也可使用数组来进行拼接,相对+运算更容易调整缩进。
3434
3535
```
3636
var html = '' // 此处用一个空字符串,以便整个HTML片段都在新行严格对齐

0 commit comments

Comments
 (0)