<!-- 内联事件 -->
<button onclick="go()">btn</button>
<script>
function go(){
console.log("hello world")
}
</script>
/* 内联事件
定义 data-aid="123456"
获取自定义属性值 event.target.dataset.aid
*/
function go(event){
console.log("hello world");
console.log(event.target.dataset.aid);
}