Comments (1)
嗯,示例代码都是跑通的。但书中其它部分的一些举例性的代码意在说明其中原理就没有一个一个地去跑了,这难免会有小Bug或者笔误,还请见谅。毕竟写书也是一个迭代的过程,也多得有了你们这样热心的推动这些小Bug会慢慢被我根除的。
你这个问题确实是一个笔误了,确实不能使用箭头方法,应该直接使用闭包函数返回
function createSpy(targetFunc) {
function spy() {
spy.args = arguments;
spy.returnValue = targetFunc.apply(this, arguments);
return spy.returnValue;
}
}
from vue-in-action.
Related Issues (20)
- 书中例子与github上的源码为什么从建构上就不一样 HOT 1
- 我下载的第一章的代码无法执行报错 HOT 2
- 第3~5章代码,运行后界面可以出来可是一刷新就出现打断点标志。title前圆圈也一直在转
- P88 第二段中的v-bind 应该为v-on
- P251,第一个代码块中
- 第二张e2e端到端测试,配置失败
- 本书第64页疑似有误 HOT 2
- p53 安装命令 错误 vue-router 不应该用 -D HOT 1
- 致命的错误2 处
- P251,代码错误
- 路由配置无法指到图书详情页
- 你为何不把代码都放在 vue-in-action repo内
- 新老版本导致许多问题 HOT 1
- P123页,下方代码是不是有问题啊?
- 第1章全局安装vue-cli的版本是?
- 你想在第六章的6.3想说啥,可否直接跳过垃圾的6.3这一节 HOT 1
- 老师您好,关于多入口的问题,想请教! HOT 2
- 老师,书里有些代码没执行成功 HOT 2
- 第5页错误 HOT 2
- P89 接收自定义事件指令应为v-on
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-in-action.