📅  最后修改于: 2022-03-11 15:02:48.877000             🧑  作者: Mango
//Try this
var e = document.getElementById("your-elements-id");
var data1 = e.getAttribute("data-yourData");
var data2 = e.dataset.yourdata;