js正则表达式限制不能输入半角或全角空格function delHtmlTag(str){var newstr=str.replace((^s+)|(s+$)g,"")去=前后空格returnnewstr.replace(sg,"2023-03-04JavaScript180