<template> <div v-if=isType('0')></div> </template>computed:{ isType() { // 须要return一个fn并接管参数 return function(type) { let is = true if(type==='1'){ return false } return is } },}
<template> <div v-if=isType('0')></div> </template>computed:{ isType() { // 须要return一个fn并接管参数 return function(type) { let is = true if(type==='1'){ return false } return is } },}