摘要: 转载于https://www.jianshu.com/p/a4affde4c8ca 当Event Looper正在处理Microtask Queue中的Event时候,Event Queue中的Event就停止了处理了,此时App不能绘制任何图形,不能处理任何鼠标点击,不能处理文件IO等等 Even 阅读全文
posted @ 2020-07-26 21:46 NeoZy 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 函数可以定义在表达式的内部,他们被称为函数字面量,或者闭包。 其实和c++的lambda匿名函数是一样的, 比如 country.cities.where((city)=>city.population>10000000) 其中的(city)=>city.population>10000000就是闭 阅读全文
posted @ 2020-07-26 18:24 NeoZy 阅读(403) 评论(0) 推荐(0) 编辑