HTML: Markup language
CSS: Styling language
JavaScript: Scripting language
Web APIs: Programming interfaces
All web technology
Learn web development
Discover our tools
Get to know MDN better
此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。
View in English Always switch to English
此特性不属于基线,因为它尚未在主流浏览器中得到支持。
Want more support for this feature? Tell us why.
返回一个可以唯一地识别和触摸平面接触的点的值。这个值在这根手指(或触摸笔等)所引发的所有事件中保持一致,直到它离开触摸平面。
var id = touchItem.identifier;
id
Touch 对象的唯一标识符。
Touch
Touch Events Specification