更新時間:2024-05-22 18:07:22作者:留學之路
Whatisthe mostdifficultthingaboutsupportingthevariousJSlibraries?
要支持這些不同種類的JS庫,最困難的事情是什么?
www.infoq.com
Thisis becausetheregularpersontagisaserver-sidecomponentthatcannotcurrently be called fromJScode.
這是因為規(guī)范的個人標簽,是一個服務(wù)器端的構(gòu)件,目前還不能從JS代碼中對其進行訪問。
www.ibm.com
Alternatively,you canstoretheminanexternalJSfile,butthatslightlycomplicatesdeploymentbyreducingencapsulationwithinthecontrol.
此外,也可將其存儲在一個外部JS文件中,但由于減少了控件內(nèi)部的封裝,因而會使部署復雜一些。
www.ibm.com