微信小程序-获取input值的两种方法
1、bindinput<input bindinput='getInputValue' name='price' type='text' placeholder='输入内容'></input>其中 e.detail 是获取 input 数据 其中包含value值, cursor 是获取光标的位置。getInputValue(e){ console.log(e.detail)// {value: "ff", cursor: 2} }2. bindsubmit&






