Javascript中绑定click事件的四种方式介绍 一:HTML中添加onclick<buttonid="vv"onclick="myfunction()">哈哈</button>二:JS中定义函数绑定 绑定click事件