大家都知道有form中有input标签,其实还有一个标签叫output
<output></output>
代码语言:javascript
复制 <form oninput="result.value=parseInt(a.value) parseInt(b.value)">
<input type="range" name="b" value="50" />
<input type="number" name="a" value="10" /> =
<output name="result"></output>
</form>