decoder.end(buffer)时,仅传入了好的第1个字节,此时调用decoder.end(),返回了�,对应的buffer为<Buffer ef bf bd>。 constStringDecoder=require('string_decoder').StringDecoder;// Buffer.from('好') => <Buffer e5 a5 bd>letdecoder =newStringDecoder('utf8');letstr = decoder.end(Buffer.from([...