源代码
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()
如何让链式调用不换行,或者超出多少长度换行。
10 回答11.7k 阅读
2 回答3.2k 阅读✓ 已解决
2 回答4.3k 阅读✓ 已解决
4 回答4.6k 阅读✓ 已解决
3 回答1.9k 阅读✓ 已解决
4 回答2.1k 阅读✓ 已解决
2 回答1.7k 阅读✓ 已解决