JSFiddle - React, Tailwind, and code Playground

by qichengzx

HTML

<span class="abc"><a href="javascript:void(0)" onclick="aa(1,2,3)">我是按钮</a></span>

JavaScript

function aa(a,b,c){
alert(this.parentNode.className)
}