我的 proto 文件类
txt {
string title = 'title'
}
我用的 protobufjs ,txt.create({ title:'xxxx'}) 没有问题
但是如果里面还嵌套别的类的话不知道怎么做了
如:
book {
string title;
infoModel info;
}
就不知道怎么 create 里面的 infoModel 并挂到 book 上去
txt {
string title = 'title'
}
我用的 protobufjs ,txt.create({ title:'xxxx'}) 没有问题
但是如果里面还嵌套别的类的话不知道怎么做了
如:
book {
string title;
infoModel info;
}
就不知道怎么 create 里面的 infoModel 并挂到 book 上去