`ll`返回的是`dog`,`dog`默认没有`cat`写入。你在`ll`里调用的`oo`的返回值,根本没有接。改成`return &dog {name:name,age:age, cat: oo(id)}`看看
阅读量:1
点赞量:0