remark.split("[")[0]//截取remark字符串中"["之前的字符let remark = '12345[6789]'let remarkSplit = remark.split("[")[0]console.log(remarkSplit)//12345