2017-5-28 据不少读者的来信说之前这个示例源码一直无法运行,这是由于本书经历出版周期后WebPack和vue的相关工具都进行了升级,新版本的WebPack配置发生了不少的变更所至。 我会在简书中对新变更的内容进行一些更新说明以作为本书的迭代,新的内容会在后续的发行版本中更新到书中。
- NodeJS v7.10.0
- NPM v4.6.1
- Vue v2.3.3
- vue-cli v2.8.2
npm i
npm run dev
《Vue2实践揭秘》 第3~5章示例源码
I think your book is so bad.
感觉买到了假书,作者的代码过不了eslint,
前面说好的规范,根本没有,
您好,根据我的学习,我发现您书上的源码和你的github上的源码有很大的区别,且有一些优化您都没加进去,这是为什么呢?为什么不进行修改一下呢?如果不修改,要么就不要将这个源码放出来误导我们是把。
最后谢谢您写了这本书,是它让我入门,总之很感谢,但是意见还是要提的是不?
作者代码用心点吧。好歹让我们这些买了书的人能把代码跑通
书本第64页this.$router.params.id 提示未定义
查阅vue文档发现 应该改为 this.$route.params.id
少了一个R,不知道是不是和版本有关
就说书上说的路由那里,自己说要单独出一个文件夹放路由定义文件,结果示例里面竟然写在main.js里面,还有组建和页面,感觉就是想到就放的,没有体现结构出来啊
别告诉我是伪代码……某些代码段不太可能走通的。我特地想来看看源码。话说这个github还有维护吗?
按照书上的步骤 根本无法完成项目
代码写的不明确 很多东西前后不一致
第56页 main.js里面内容:
const router = newVueRouter()
移至routes.js里面变成了
export default = new VueRouter()//此行代码在语法上还报错
因为版本的问题 无法打开,求指点
看着挺难受的,想跟着敲一遍,这么多不一样的!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.