摘要:
<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Title</title> <style> #one{ width: 300px; height: 300px; background: red; } #two{ 阅读全文
摘要:
<button id="btn" onclick="tex()">这是一个按钮</button> 1 第一添加事件方法 function tex(){ console.log("2222222222222"); } 2,第二种添加事件方法 var objbtn=document.getElement 阅读全文