UNPKG

@writ/utils

Version:
8 lines 214 B
'use strict'; // 判断是否Touch屏幕 export default function isTouchScreen() { return ( "ontouchstart" in window || (window.DocumentTouch && document instanceof DocumentTouch) ); }