Vue2.0脚手架代码详解(http://www.jianshu.com/p/2b661d01eaf8_) 说明:在*.vue文件,template标签里写html代码,且template直接子级只能有一个标签。style标签里写样式,script里面写js代码 a. 页面:index.html