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 length
属性
更新于 2024/3/20 22:12:00
❮ Buffer 模块
实例
返回缓冲区的大小:
var buf = Buffer.from('abc');
console.log(buf.length);
运行实例 »
定义和用法
length 属性返回缓冲区的大小,以字节为单位。
语法
buffer
.length;
技术细节
返回值:
一个数字,表示缓冲区的大小
Node.js 版本:
0.1.90
❮ Buffer 模块
颜色选择器
Nodejs 参考手册
Nodejs 测验/考试
读后有收获微信请站长喝咖啡