BootWiki教程网
源代码:
点击运行
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>BootWiki 教程网</title> </head> <body> <form oninput="x.value=parseInt(a.value)+parseInt(b.value)">0 <input id="a" type="range" value="50">100 +<input id="b" type="number" value="50"> =<output for="a b" name="x"></output> </form> <p><strong>注意:</strong> Internet Explorer 不支持 output 标签。</p> </body> </html>
运行结果