input表单监听
oninput="if(value >100){value = '100'}else if (value < 1 ){value = '1'}"
input中这行代码是限制输入框数据的大小
<div class="b">-</div>
<input type="number" id="inputa" value="1" oninput="if(value >100){value = '100'}else if (value < 1 ){value = '1'}">
<div class="c">
+
</div>
<div class="d">金币</div>