基本使用JS添加交互事件<h1 onclick="this.innerHTML='Ooops!'">点击文本!</h1>
点击文本!
操作DOM元素//例:向button元素分配onclick事件:
document.getE
2020-11-25