📜  home raj 桌面 webProjects node-shop-api node_modules whatwg-url dist encoding.js:2 const utf8Encoder = new TextEncoder(); ^ ReferenceError:未定义 TextEncoder - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:29.233000             🧑  作者: Mango

代码示例1
"use strict";
var util= require('util');
const utf8Encoder = new util.TextEncoder();
const utf8Decoder = new util.TextDecoder("utf-8", { ignoreBOM: true });