📌  相关文章
📜  如何在 javascript 代码示例中创建点击功能

📅  最后修改于: 2022-03-11 15:04:18             🧑  作者: Mango

代码示例2
var x = document.getElementById('container');
//click can also be antother event
x.addEventListener('click', function (x) {
  console.log('hi');
});