标签: angular angular5
如何定义结果: res 的类型?
这是我的代码:
private model: User = new User() constructor( private route: ActivatedRoute){} functionxxx() { this.route.queryParams.subscribe(res => { this.model = res }) }