移动端常用js 判断是否是移动端 var isTouchdevice = 'ontouchstart' in document.documentElement window.innerWidth; window.innerHeight;