<html>
<head>
<meta charset="utf-8">
<title>Fmpq教程(fmpq.com)</title>
</head>
<body>
<p>x=5, 返回 x==5 的比较值结果。</p>
<button onclick="myFunction()">尝试一下</button>
<p id="demo"></p>
<script>
function myFunction()
{
var x=5;
document.getElementById("demo").innerHTML=x==5;
}
</script>
</body>
</html>