const filterFun = computed(() => {
return function(content: string | null){
if(!content) {
return;
}
return content.length> 22? content.slice(0, 22) + '...': content;
}
})
const filterFun = computed(() => {
return function(content: string | null){
if(!content) {
return;
}
return content.length> 22? content.slice(0, 22) + '...': content;
}
})
本文标题:Vue3过滤器
本文链接:https://www.haomeiwen.com/subject/njffwrtx.html
网友评论