serializer.writeValue(value)


将 JavaScript 值序列化,并将序列化后的表示添加到内部缓冲区。

【Serializes a JavaScript value and adds the serialized representation to the internal buffer.】

如果 value 无法序列化,会抛出错误。

【This throws an error if value cannot be serialized.】