摘要: Swift语言里有各种type ,对于function来讲本身也是一种type。 一个type由三个因素决定 参数数量 参数类型 返回值 当function type相同时,就可以像Int, Double视为同类进行操作了,譬如赋值,作为另一个函数的参数传递,作为返回值返回。 阅读全文
posted @ 2020-10-01 17:11 fuzheng1998 阅读(148) 评论(0) 推荐(0)
摘要: 官方建议 Use structures by default. Use classes when you need Objective-C interoperability. Use classes when you need to control the identity of the data 阅读全文
posted @ 2020-09-13 16:23 fuzheng1998 阅读(86) 评论(0) 推荐(0)
摘要: 函数组件与 class 组件 阅读全文
posted @ 2020-09-03 19:23 fuzheng1998 阅读(126) 评论(0) 推荐(0)
摘要: React 的入门代码 阅读全文
posted @ 2020-08-29 09:04 fuzheng1998 阅读(185) 评论(0) 推荐(0)
摘要: void *data表示该指针指向的 data 的数据类型并不确定 阅读全文
posted @ 2020-08-28 12:12 fuzheng1998 阅读(76) 评论(0) 推荐(0)