求助一个问题string.replace(/^\s*(.*?)[\s\n]*$/g, '$1 '); 中^\s*(.*?)[\s\n]*$代表什么意思 $1代表什么意思 [解决办法]Regular Expression 正则表达式 自己google