初试MVVM框架之React入门【南大软院大神养成计划】
var data = [
{author: "Pete Hunt", text: "This is one comment"},
{author: "Jordan Walke", text: "This is *another* comment"}
];
//读取父组件的数据
//在这儿this.props.author读取了传进来的author数据
//而“This this one co
原创
2015-11-19 11:12:36 ·
672 阅读 ·
0 评论