📅  最后修改于: 2022-03-11 15:01:14.296000             🧑  作者: Mango
// get the element
const element = document.getElementById('profile_title')
// always checking if the element is clicked, if so, do alert('hello')
element.addEventListener("click", () => {
alert('hello');
});