JavaScript 赋值JavaScript 赋值<!DOCTYPE html><html><body> <h2>JavaScript 赋值</h2> <p>在 JavaScript 中,= 运算符用于向变量赋值。</p> <p id="demo"></p> <script>var x, y;x = 7;y = 8;document.getElementById("demo").innerHTML = x + y;</script> </body></html>