let filters = {
dateDay: function (timestamp) {
return parseInt(Date.parse(new Date()) / 1000);
}
}
Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key])
});
let filters = {
dateDay: function (timestamp) {
return parseInt(Date.parse(new Date()) / 1000);
}
}
Object.keys(filters).forEach(key => {
Vue.filter(key, filters[key])
});
本文标题:批量安装过滤器
本文链接:https://www.haomeiwen.com/subject/mfimcktx.html
网友评论