Sign in

Is this the syntax of pug or Vue

Yierith edited in Fri, 29 Jul 2022

Why can I transfer SRC to transferurl

2 Replies
commented on Fri, 29 Jul 2022

Vue's filter

commented on Fri, 29 Jul 2022
img(src="...") // 这是pug 语法;
// 括号里面为vue的绑定和过滤器,下面的等同于上面的 a.logo 不存在的即使用 defaultLogo ,再将整个路径应用 transferuRl 过滤器;
img(:scr="(a.logo || defaultLogo) | transferuRl") 
lock This question has been locked and the reply function has been disabled.