- 博客(4)
- 收藏
- 关注
原创 Go Tutorial 02 - Data type - Primitives
Boolean type Var n bool = false Not an alias for other types (e.g. int) Zero value is false - Boolean Variable without initialized is false. Numeric types Integers Signed integers. Int type has varying size. But min 32 bits 8 bit (int8) t
2021-05-08 18:13:38
82
原创 Go Tutorial 01 - Variable
Variable Variable declaration Variable: var foo int Variable with initializers: var foo int = 42 Short variable declarations: foo := 42 Can’t redeclare variables, but can shadow them. All variables must be used. Visibility Lower case first lett
2021-05-08 18:12:17
84
原创 Angular2 分页(Pagination)
定义各种属性 pageIndex = 1; //现在的页数 itemsPerPage = 12; //每页显示的数量 totalPages = 1; //总页数 frontPaginationDisabled = false; //是否是第一页 rearPaginationDisabled = false; //是否是最后一页 显示该页的数据 showCities(): City[]{
2017-07-23 17:46:45
638
原创 Angular2 搭建项目
如果机器里没有Node.js, 那么先安装Node.js. 然后安装Angular 2. 打开Node.js command prompt安装 npm install -g @angular/cli 创建程序my-blog ng new my-blog 启动Angular2 项目 cd my-blog ng serve --open
2017-07-22 20:15:42
201
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人