Get to know MDN better
このページはコミュニティーの尽力で英語から翻訳されました。MDN Web Docs コミュニティーについてもっと知り、仲間になるにはこちらから。
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Experimental: これは実験的な機能です。
本番で使用する前にブラウザー互換性一覧表をチェックしてください。
has() は KeyboardLayoutMap インターフェイスのメソッドで、オブジェクトに指定したキーを持つ要素があるかどうかを示す論理値を返します。
有効なキーの一覧は UI Events KeyboardEvent code Values 仕様にあります。
マップ内で検索する要素のキーです。
指定したキーが得られたかどうかを示す論理値 (Boolean) です。
| ECMAScript® 2027 Language Specification # sec-map.prototype.has |
Enable JavaScript to view this browser compatibility table.
This page was last modified on 2023年12月4日 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.