Skip to content

supportTouch ​

判断当前环境是否支持 触摸事件。

使用 ​

ts
import { supportTouch } from 'rattail'

supportTouch() // 如果支持触摸事件返回 true,否则返回 false

返回值 ​

类型
boolean