摘要: 使用call来绑定,不行,因为Vue源码中对methods方法进行了遍历bind(fn),固定了this为当前实例 所以只能 实例.$options.methods.方法名.call(this) 阅读全文
posted @ 2021-04-22 10:22 otome 阅读(1097) 评论(0) 推荐(0) 编辑