template 和 script 是两个模块要分开写

 

 开始我把 script 模块写到了 template 里面总是编译不通过。

第二点 template 里面可以写变量也可以写函数,写函数 script 里面就要写

/*methods:{
details: function(){
return this.site + "学的不是技术,更是梦想" ;
}
 
}*/

posted on 2020-11-09 16:28  静海晴心  阅读(379)  评论(0编辑  收藏  举报