[英]how can i make typescript simulated pointer?
我想模擬“像在JAVA中一樣”的指針,以指向我在打字稿或JavaScript中的類的新對象
看到下面的鏈接? http://postimg.org/image/9za5xagoj/ http://tinypic.com/r/fdet8p/9
class Asset{
item:string
mainBeneficiary: EntitlementArray[];
equalshare:boolean
substituteSet: EntitlementArray[];
}
assets:Asset ;
//points to only "Asset"
pointer : Asset;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.