摘要: 1. 网络编程与JSON解析 默认的HttpClient请求网络 get() async { //创建网络调用示例,设置通用请求行为(超时时间) var httpClient = HttpClient(); httpClient.idleTimeout = Duration(seconds: 5); 阅读全文
posted @ 2020-04-30 09:29 潇风寒月 阅读(19) 评论(0) 推荐(0)
摘要: 1. Dart 基础语法 1.1 hello world 先来看个hello world,入口依然是main方法. printInteger(int a) { print('Hello world, this is $a.'); } main() { var number = 2019; print 阅读全文
posted @ 2020-04-30 09:26 潇风寒月 阅读(30) 评论(0) 推荐(0)