1 <!doctype html>
2 <html>
3 <head>
4 <meta charset="utf-8">
5 <title>无标题文档</title>
6 </head>
7 <p style="color:#FF0000">
8
9 </p>
10 <form action="L3_01.html" method="get" oninput="num.value=parseInt(num1.value)+parseInt(num2.value)">
11 <input type="number" id="num1"> +
12 <input type="number" id="num2"> =
13 <output name="num" for="num1 num2"></output>
14 </form>
15 <body>
16 </body>
17 </html>