1
0

docs: 更新文章内容

This commit is contained in:
2025-10-13 10:20:34 +08:00
parent 6e549d6b49
commit afea227c37
108 changed files with 1439 additions and 921 deletions

View File

@@ -1,5 +1,5 @@
---
title: Electron 或 Node.js 判断当前设备是否支持触摸屏
title: "Electron 或 Node.js 判断当前设备是否支持触摸屏"
date: 2025-02-11T20:55:18Z
lastmod: 2025-02-20T22:57:46Z
tags: [JavaScript,Node.js,Electron,Web 前端]
@@ -9,7 +9,7 @@ tags: [JavaScript,Node.js,Electron,Web 前端]
在 Windows 系统上,可以通过注册表项 `HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Tablet PC\IsTabletPC` 获取当前设备是否支持触摸屏。
`IsTabletPC` 的值大于 `0`,则表示支持触摸屏。
`IsTabletPC` 的值大于 `0`,则表示支持触摸屏。
![](assets/network-asset-3280690-20231218143106045-884789034-20250212095032-064mwnt.png)