setAttribute ('data-cmd', yourNewCmd); button.setAttribute('data-id', yourNewId); ... Reading/writing data attributes with jQuery #.
確定! 回上一頁