获取data-id的值

this.getAttribute('data-id)

原文地址:https://www.cnblogs.com/dolphin-369/p/11837364.html