📜  如何使用数据集 javascrip[t - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:53.189000             🧑  作者: Mango

代码示例1
const article = document.querySelector('#electric-cars');
// The following would also work:
// const article = document.getElementById("electric-cars")

article.dataset.columns // "3"
article.dataset.indexNumber // "12314"
article.dataset.parent // "cars"