const Msg = this.form.Msg.replace( (/%(u[0-9A-F]{4})|(%[0-9A-F]{2})/gm, $0 => { return escape($0).replace(/(%u)(\w{4})/gi, \'&#x$2;\') }) ) Msg再传给后端就行 this.form.Msg就是输入框的内容自定义的 相关文章: 2021-05-10 2021-07-27 2021-12-30 2022-12-23 2022-12-23 2021-12-19 2021-12-15