An element can have any number of data attributes you want. ... getAttribute('data-id'); // Change the values button.setAttribute('data-cmd' ...
確定! 回上一頁