You could also grab the attributes with the getAttribute() method which will return the value of a specific HTML attribute. var elem = document. ... <看更多>
record id can be accessed using dataset event.target.dataset.recordId . record-id translates to recordId. The kebab cased 'data-' attributes ... ... <看更多>