赞助
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就是输入框的内容自定义的

posted on 2021-01-26 17:08  Tsunami黄嵩粟  阅读(310)  评论(0)    收藏  举报