摘要:
vue2.0中去除了在v-html中使用filters方法,但是这是否意味着不可以这么使用了呢 html部分 <span v-html="$options.filters.contentFilters(item.data.description, this)" ></span> js部分 filte 阅读全文
摘要:
周所周知,Vue在2.0版本中去除了$broadcast方法以及$dispatch方法,最近在学习饿了么的Element时重新实现了这两种方法,并以minix的方式引入。 废话不多说,上代码 function broadcast(componentName, eventName, params) { 阅读全文