HTML
CSS
JAVASCRIPT
JQUERY
AI
PHP
SQL
EXCEL
LINUX
C#
C++
C
PYTHON
JAVA
教程库
参考手册
技术文章
测验
练习
HOWTO
FAQ
Node.js
教程
Node.js 教程
Node.js 简介
Node.js 下载安装
Node.js 模块系统
Node.js HTTP 模块
Node.js 文件系统
Node.js URL 模块
Node.js NPM
Node.js 事件
Node.js 上传文件
Node.js Email
Node.js
MySQL
MySQL 入门
MySQL Create Database
MySQL Create Table
MySQL Insert Into
MySQL Select From
MySQL Where
MySQL Order By
MySQL Delete
MySQL Drop Table
MySQL Update
MySQL Limit
MySQL Join
Node.js
MongoDB
MongoDB 入门
MongoDB Create Database
MongoDB Create Collection
MongoDB Insert
MongoDB Find
MongoDB Query
MongoDB Sort
MongoDB Delete
MongoDB Drop Collection
MongoDB Update
MongoDB Limit
MongoDB Join
Raspberry
Pi
RasPi 树莓派
RasPi GPIO 介绍
RasPi LED 闪烁
RasPi LED 和按钮
RasPi LED 流动
RasPi WebSocket
RasPi RGB LED WebSocket
RasPi 组件
Node.js
参考手册
Node.js 内置模块
Node.js
实例
Node.js 在线测验
Node.js
buffer toJSON()
方法
更新于 2024/3/20 22:53:00
❮ Buffer 模块
实例
将 Buffer 缓冲区对象作为 JSON 对象返回:
var buf = Buffer.from('abc');
console.log(buf.toJSON());
运行实例 »
定义和用法
toJSON() 方法根据 Buffer 对象返回一个 JSON 对象。
语法
buffer
.toJSON();
技术细节
返回值:
A JSON object
Node.js 版本:
0.9.2
❮ Buffer 模块
颜色选择器
Nodejs 参考手册
Nodejs 测验/考试
读后有收获微信请站长喝咖啡