The front end Vue – Computes attribute transfer parameters December 12, 2023 by 欒俊傑 No Comments <div>{{isRightId(id)}}</div> data(){ return { id:1 } }, isRightId () { return (id) => { if (Number(id) === 1) { return true } return false } }, Copy the code