摘要: let str = `第一行, 第二行, 第三行, 第四行` let len = str.split('\n').length console.log(len) // 4 阅读全文
posted @ 2022-04-28 10:39 技术颜良 阅读(1623) 评论(0) 推荐(0)