第057个
专栏目标
在vue和element UI联合技术栈的操控下,本专栏提供行之有效的源代码示例和信息点介绍,做到灵活运用。
本文章目录
使用vue项目时候,有时候需要在方法中使用到匿名函数,加载方法如下,供参考
methonds: {
query() {
let count = 0;
let that = this;
let f = function() {
console.log('this', that, 'count', count);
this,VueComponent{...}
count,0
}
f();
} }