<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
}
},
}
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。