mindb icon indicating copy to clipboard operation
mindb copied to clipboard

README 中的一个小问题

Open nighca opened this issue 9 years ago • 0 comments

SWEET! Let's run to Harmony(ES2015)!

async _ => {
  var userId = await min.incr('users:id:seq')
  await min.hmset(`user:${userId}`, {
    name: 'Will Wen Gunn',
    sign: 'iwillwen',
    homepage: 'http://lifemap.in'
  })
  await min.sadd(`user:${userId}:msgs`, 'Welcome')
}

async / await 不是 ES2015 的内容,ECMAScript Harmony 跟 ES2015 概念上也有区别。

nighca avatar Mar 11 '16 09:03 nighca