如何解决我的问题 Uncaught ReferenceError: changeText is not defined

时间:2021-07-18 05:12:47

标签: javascript function dom onclick

@Component
@Slf4j
@RequiredArgsConstructor
public class AutoMapper {

    public String getDummyText(){
        return  "Hello From AutoMapper.";
    }
}

} console.log("changeText");

<h2>JavaScript HTML Events</h2>
<h2 onclick="changeText(this)">Click on this text!</h2>

<script src="app.js">
function changeText(myvalue) {
myvalue.innerHTML = "Ooops!";


  1. 标题

##

0 个答案:

没有答案