typescript类--学习笔记三classPoint{publicx:numberpublicy:numberconstructor(x:number,y:number){this.x=xthis.y=y}publicgetPosition(){return`${this.x}${this.y}`}}constpoint=newPoint(1,2)classParent{publicname:
typescript基本类型|Symbol|接口|函数--学习笔记二基本类型letbool:boolean=falseletnum:number=123letstr:stringstr="abc"str=`数值是${num}`letarr1:number[]=[1,2,3]letarr2:Array<number|string>=[1,2,3]letarr3:(string|numbe
typescript基本环境搭建工具vscode步骤扩展--主题OneDarkPronpminitpackage.json{"name":"client-side","version":"1.0.0","description":"sourcecodeofts-learning","main":"./src/index.ts","scripts":{"test":"echo\"Error:note
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号