項目總結(關於typeScript中定義對象變量的錯誤)

因爲最近作的這個項目是用angular4.0+ionic3.0搭建的,用的是typeScript的這個js的兄弟語言(其實就是js的超集), 首先在定義變量的時候必定要指明類型,例如:web loginData:any = {}; dataList:any = []; isShow:boolean=true; message:string; psd:string="password"; userN
相關文章
相關標籤/搜索