📜  拆分文本并加入 js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:07.760000             🧑  作者: Mango

代码示例1
const myText = "It is a long established fact that a reader will"
const newText = myText.split(" ").join("-")
console.log(newText);//It-is-a-long-established-fact-that-a-reader-will