<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script>
function a(){
document.getElementById("a").innerHTML=111111;
}
</script>
</head>
<body>
<div id="a" onclick="a()">点我替换</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<script>
function a(){
document.getElementById("a").innerHTML=111111;
}
</script>
</head>
<body>
<div id="a" onclick="a()">点我替换</div>
</body>
</html>