用vue实现点击加1 点击加实现数字加1最高加到999 点击减实现数字减1最低减到1 代码如下: html: <div id="app"> <p> <button @click="calc(-1)":disabled="num<=1">-</button>