开发者工具是先失焦再提交
真机是相反的
<form bindsubmit="formSubmit">
<input type="number" bindblur="change" />
<button formType="submit" type="primary" style="margin-top:10rpx">按键</button>
</form>
Page({
data: {
},
change(e){
console.log(e.detail.value)
console.log("input命令")
},
formSubmit(){
console.log("按键命令")
}
})