- 博客(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
77
原创 Go Tutorial 01 - Variable
VariableVariable 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
79
原创 Angular2 分页(Pagination)
定义各种属性pageIndex = 1; //现在的页数itemsPerPage = 12; //每页显示的数量totalPages = 1; //总页数frontPaginationDisabled = false; //是否是第一页rearPaginationDisabled = false; //是否是最后一页显示该页的数据showCities(): City[]{
2017-07-23 17:46:45
631
原创 Angular2 搭建项目
如果机器里没有Node.js, 那么先安装Node.js.然后安装Angular 2. 打开Node.js command prompt安装npm install -g @angular/cli创建程序my-blogng new my-blog启动Angular2 项目cd my-blogng serve --open
2017-07-22 20:15:42
192
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人