如何写精华回答,获更多曝光?
发布
//类的定义:
class PlayViewModel{
url?:strring
title?:string
}
//调用时:(此处希望分别监听url,title)
@Watch ("playVMChanged") @Stage playVM: PlayViewModel = new PlayViewModel()
playVMChanged(name:string){
this.url = this.playVM.url
this.title = this.playVM.title
}