TS写法:
private get activeItem(): string {
return this.getQueryVariable('item');
}
请问如何改写成js形式的?
回答
这对象访问器getter
,可以查看文档https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Functions/get
get activeItem() {
return this.getQueryVariable('item')
}
本文地址:H5W3 » 请问这个转换为js该怎么写?