自学微信小程序的第七天

DAY7

1、canvas组件用于自定义绘制图形,该组件支撑2D和WebGl的绘图。

表38:canvas组件的常用属性

属性

类型

说明

type

string

指定canvas组件的类型,支持2D和WebDL

canvas-id

string

Canvas组件的唯一标识符,若指定了type属性则无需再指定该属性

disable-scroll

boolean

当在canvas组件中移动时且有绑定手势事件时,禁止屏幕滚动及下拉刷新,默认值为false

bindtouchstart

eventhandle

手势触摸动作开始

bindtouchmove

eventhandle

手势触摸后移动

bindtouchend

eventhandle

手势触摸后动作结束

bindtouchcancel

你可能感兴趣的:(微信小程序,小程序)