JS 中文 UTF-8编码互转中文转UTF-8: let str = '中文内容' 待转换中文 escape(str ).replace((%u)(w{4})gi, "$2")UTF-8转中文: let2023-04-23JavaScript230