摘要: Generator can run with for .. of and ..., which will only emit yield values For example: function* count() { yield 1; yield 2; return 3; } for (const 阅读全文
posted @ 2024-03-13 19:42 Zhentiw 阅读(4) 评论(0) 推荐(0) 编辑
摘要: Create a new User instance would create a new login function in memory each time? class User { constructor(username) { this.username = username; } log 阅读全文
posted @ 2024-03-13 19:09 Zhentiw 阅读(4) 评论(0) 推荐(0) 编辑