参考 width

width

Number 变量存储画布宽度,单位是像素。

width 的默认值是 0,调用 createCanvas()resizeCanvas() 会改变 width 的值。 调用 noCanvas() 将其值设为 0。

示例

This page is generated from the comments in src/core/environment.js . Please feel free to edit it and submit a pull request!

相关参考