📅  最后修改于: 2022-03-11 15:04:18             🧑  作者: Mango
var x = document.getElementById('container');
//click can also be antother event
x.addEventListener('click', function (x) {
console.log('hi');
});