分类
教程
文章
官方文档
入门教程
文章
VIP会员
微信小程序API wx.createCanvasContext(canvasId)(绘图上下文)
赞
收藏
更多文章
目录
301 Moved Permanently
301 Moved Permanently
nginx
搜索
A
A
默认
护眼
夜间
阅读(1876)
赞
(
22
)
微信小程序API wx.createCanvasContext(canvasId)(绘图上下文)
2016-12-24 11:20:01 更新
绘图接口和方法
wx.createCanvasContext(canvasId)
定义
创建 canvas 绘图上下文(指定 canvasId)
Tip
: 需要指定 canvasId,该绘图上下文只作用于对应的
<canvas/>
参数
参数
类型
说明
canvasId
String
画布表示,传入定义在
<canvas/>
的 canvas-id
绘图接口和方法
←
微信小程序API color(绘图颜色)
微信小程序API 创建并返回上下文 wx.createContext (不推荐使用)
→