IDBIndex.keyPath

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.

Note: This feature is available in Web Workers.

Thuộc tính chỉ đọc keyPath của giao diện IDBIndex trả về đường dẫn khóa của index này. Nếu là null, index này không được tự động điền.

Giá trị

Một giá trị DOMString, DOMString[] hoặc null.

Ví dụ

js
console.log(myIndex.keyPath);

Thông số kỹ thuật

Thông số kỹ thuật
Indexed Database API 3.0
# dom-idbindex-keypath

Tương thích trình duyệt