请问js如何获取手机电脑设备屏幕尺寸显卡手机型号等信息?
网友回复
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <script type="text/javascript"> (function () { var canvas, gl, glRenderer, models, devices = [ ['a7', '640x1136', ['iPhone 5', 'iPhone 5s']], ['a7', '1536x2048', ['iPad Air', 'iPad Mini 2', 'iPad Mini 3']], ['a8', '640x1136', ['iPod touch (6th gen)']], ['a8', '750x1334', ['iPhone 6']], ['a8', '1242x2208', ['iPhone 6 Plus']], ['a8', '1536x2048', ['iPad Air 2', 'iPad Mini 4']], ['a9', '640x1136', ['iPhone SE']], ['a9', '750x1334', ['iPhone 6s']], ['a9', '1242x2208', ['iPhone 6s Plus']], ['a9x', '1536x2048', ['iPad Pro (1st gen 9.7-inch)']], ['a9x', '2048x2732', ['iPad Pro (1st gen 12.9-inch)']], ['a10', '750x1334', ['iPhone 7']], ['a10', '1242x2208', ['iPhone 7 Plus']], ['a10x', '1668x2224', ['iPad Pro (2th gen 10.5-inch)']], ['a10x', '2048x2732', ['iPad Pro (2th gen 12.9-inch)']], ['a11', '750x1334', ['iPhone 8']], ['a11', '1242x2208', ['iPhone 8 Plus']], ['a11', '1125x2436', ['iPhone X']], ['a12', '828x1792', ['iPhone Xr']], ['a12', '1125x2436', ['iPhone Xs']], ['a12', '1242x2688', ['iPhone Xs Max']], ['a12x', '1668x2388', ['iPad Pro (3rd gen 11-inch)']], ['a12x', '2048x2732', ['iPad Pro (3rd gen 12.9-in...
点击查看剩余70%
如何编写一个chrome插件实现多线程高速下载大文件?
cdn版本的vue在网页中出现typeerror错误无法找到错误代码位置怎么办?
pywebview能否使用webrtc远程控制共享桌面和摄像头?
pywebview6.0如何让窗体接受拖拽文件获取真实的文件路径?
如何在linux系统中同时能安装运行apk的安卓应用?
python有没有离线验证码识别ocr库?
各家的ai图生视频及文生视频的api价格谁最便宜?
openai、gemini、qwen3-vl、Doubao-Seed-1.6在ui截图视觉定位这款哪家更强更准?
如何在linux上创建一个沙箱隔离的目录让python使用?
pywebview如何使用浏览器自带语音识别与webspeech 的api?