源代码
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>编程字典</title> </head> <body> <p>程序代码示例:</p> <code> var x = 5; var y = 6; document.getElementById("demo").innerHTML = x + y; </code> </body> </html>
运行结果