< el-input-number v controls-position= model = "item.buyNum": precision= "0" controls-position= "right" @ change= "handleChange": min= "1" > < / el-input-number >
handleChange (value) {
console.log (value)
}
so I can get the value, but mine is cyclic and I want to get the corresponding subscript at the same time. If I write
< el-input-number v right model = "item.buyNum": precision= "0" controls-position= "right" @ change= "handleChange (index)": min= "1" > < / el-input-number >
handleChange (value,index) {
console.log (value,index)
}
will print
ask how to get index at the same time