摘要:
一 canvas Canvas.getContext("2d");//2d是小写的 ,不能大写 二 keyframes + animation @keyframes XX{ 0% {background:yellow;} 25% {background:red;} } animation: keyf 阅读全文
摘要:
Promise本身是同步的,但是then是异步的 let res = new Promise((res, rej) => { console.log(1); }); console.log(2); }, Promise的一些方法 //all全都执行后才返回,any只要一个执行就返回 Promise. 阅读全文