Stackless introduction
Stackfull introduction
More coroutine examples
New features
Support coroutine context switch for mips
Add __tb_thread_local__ keyword macro
Add --micro=y|n option to compiling micro library (~64K) for the embed system
Add tb_addrinfo_addr and tb_addrinfo_name interfaces
Add stackless coroutine
A继续阅读 »
New features
Support make command and compile directly without xmake
Add switch context interfaces into platform module
Add coroutine module (supports i386, x86_64, arm, arm64 ..)
Add simple http server demo using coroutine
Add simple spider using coroutine
Add io poller interfaces(with epoll, poll, kqueue, select)
Su继续阅读 »
在 ES6 中引入了一种新的字符串字面量 -- 模板字符串,除了使用反引号 (`) 表示,它们看上去和普通的字符串没有什么区别。在最简单的情况下,他们就是普通的字符串:
javascript
context.fillText(`Ceci n'est pas une chaîne.`, x, y);
之所以被称为模板字符串,是因为模板字符串为 JS 引入了简单的字符串插值特性,也就是说,可以方便优雅地将 JS 的值插入到字符串中。
more
很多地方可以用到模板字符串,看下面这个不起眼的错误提示消息:
javascript
function authorize(user, action) {
if (!user.hasP继续阅读 »