码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2020-11-10 10:45:32      阅读:3      评论:0      收藏:0      [点我收藏+]

标签:inf   methods   code   width   编译   模块   load   alt   his   

技术图片

 

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

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

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

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

标签:inf   methods   code   width   编译   模块   load   alt   his   

原文地址:https://www.cnblogs.com/jhqx/p/13949249.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!