帖子:
https://forum.cocos.org/t/topic/131531/5
https://forum.cocos.org/t/topic/101786/2
目前我使用3.8,还是不能使用Buffer,
https://forum.cocos.org/t/1-5-2-1-6-0-beta3-buffer/49405
此方案无效
帖子:
https://forum.cocos.org/t/topic/131531/5
https://forum.cocos.org/t/topic/101786/2
目前我使用3.8,还是不能使用Buffer,
https://forum.cocos.org/t/1-5-2-1-6-0-beta3-buffer/49405
此方案无效
引入:
import b from "buffer/index.js";
const { Buffer } = b;
使用:
const msg = `0x${Buffer.from(message, 'utf8').toString('hex')}`;
项目里面要安装一下buffer
感谢感谢,我是在 import b from “buffer/index.js”; 这使用的是 import { Buffer } from “buffer/index.js”;
我错在 import 这了