父:
html
.......
<child :title="sontitle"></child>
......
js
data: sontitle
子:
html
{{title}}
js
props:['title']
就是这么明了
父:
html
.......
<child :title="sontitle"></child>
......
js
data: sontitle
子:
html
{{title}}
js
props:['title']
就是这么明了
转载于:https://www.cnblogs.com/hhweb/p/6931862.html