📜  如何在节点 js 中使用修剪 - Javascript 代码示例

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

代码示例1
const greeting = '   Hello world!   ';

console.log(greeting);
// expected output: "   Hello world!   ";

console.log(greeting.trim());
// expected output: "Hello world!";