The easiest way to get data-* attributes is with element.getAttribute() : onclick="fun(this.getAttribute('data-uid'), this.
確定! 回上一頁