Skip to content
Quiet Side
Go back

What's new in DevTools (chrome 59)

近期 Chrome 发布了 59 版本,那么与开发者最贴近的开发者工具中带来了什么新功能呢?

function wait(ms) {
  return new Promise(r => setTimeout(r, ms)).then(() => "Yay");
}

// do some work in background.
setInterval(() => 42, 200);

async function test() {
  debugger;
  const hello = "world";
  const response = await fetch("index.html");
  const tmp = await wait(1000);
  console.log(tmp);
  return hello;
}

async function runTest() {
  let result = await test();
  console.log(result);
}

这些新增特性使用起来非常酷,可以在实际工作中使用起来。
详细请点击这里

以上。


Share this post on:

上一篇
chrome headless探索
下一篇
FIIL Diva Pro