正文

HTML 调用 JS 函数的常见方法有以下几种: 1. 使用 `onclick` 属性: ```html ``` 当按钮被点击时,会调用 `myFunction()` 函数。 2. 使用 `addEventListener` 方法: ```html