W3School TIY
编辑您的代码:
<!DOCTYPE html> <html> <body> <h1 onclick="this.innerHTML='hello!'">请点击这段文本!</h1> </body> </html>
查看结果: