摘要: 一 canvas Canvas.getContext("2d");//2d是小写的 ,不能大写 二 keyframes + animation @keyframes XX{ 0% {background:yellow;} 25% {background:red;} } animation: keyf 阅读全文
posted @ 2022-06-02 13:34 lxq3280 阅读(27) 评论(0) 推荐(0) 编辑
摘要: Promise本身是同步的,但是then是异步的 let res = new Promise((res, rej) => { console.log(1); }); console.log(2); }, Promise的一些方法 //all全都执行后才返回,any只要一个执行就返回 Promise. 阅读全文
posted @ 2022-06-02 13:31 lxq3280 阅读(51) 评论(0) 推荐(0) 编辑
点击右上角即可分享
微信分享提示