String trim() 方法了解 JavaScript 字串的 trim() 方法 從原始字串的開頭和結尾中移除空格並回傳新的字串 1234'Testing'.trim() //'Testing'' Testing'.trim() //'Testing'' Testing '.trim() //'Testing''Testing '.trim() //'Testing' tags: [“JavaScript”, “string”, “trim()方法”]