JS trim JS 去掉左右两边空格 /** * 去掉左右两边空格 * @param str * @returns {*} */function myTrim(str){ return str.replace(/(^s*)|(s*$)/g, "");} 钟声敲响了日落