<form oninput="x.value=parseInt(a.value)+parseInt(b.value)">
0<input type="range" id="a" value="50">100
+
<input type="number" id="b" value="50">
=
<output name="x" for="a b"></output>
</form>
效果:
标签:form,效果,标签,0100,表单,output
来源: https://www.cnblogs.com/Lilc20201212/p/15854092.html