项目源码地址 :https://github.com/Xiao01/chess
核心源码查看以下2个文件
https://github.com/Xiao01/chess/blob/master/src/App.vue
https://github.com/Xiao01/chess/blob/master/src/Cell.vue
效果预览 https://xiao01.github.io/chess/dist/index.html
实现丼字棋 主要用到Vue.js的以下
1.父子组件互相传递参数 App.js为父组件,Cell.js为子组件。
接下来,楼主带着从头到尾再做一遍