<html>
<form>
<input type=text name=amount value=1>
<input type=button value="+" onClick="javascript:this.form.amount.value++;">
<input type=button value="-" onClick="javascript:if(this.form.amount.value>1) this.form.amount.value--;">
</form>
</html>
你可以直接复制 ➕(加粗的加号) ➖ (加粗的减号)