源代码
let name = 'hi!, world'
name.toLowerCase().replace('hi!', 'hello').trim()
vue prettier格式化后
let name = 'hi!, world'
name
.toLowerCase()
.replace('hi!', 'hello')
.trim()
如何让链式调用不换行,或者超出多少长度换行。
源代码
let name = 'hi!, world'
name.toLowerCase().replace('hi!', 'hello').trim()
vue prettier格式化后
let name = 'hi!, world'
name
.toLowerCase()
.replace('hi!', 'hello')
.trim()
如何让链式调用不换行,或者超出多少长度换行。
13 回答12.8k 阅读
8 回答2.6k 阅读
2 回答5.1k 阅读✓ 已解决
7 回答1.9k 阅读
9 回答1.7k 阅读✓ 已解决
3 回答2.2k 阅读✓ 已解决
5 回答848 阅读