摘要: We can even make it pure black and white by using the following calculations: * black = 0 - 382 * white = 383 - 765 And it will result in the followin 阅读全文
posted @ 2023-05-26 15:45 Regina_wisdom 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 由于JS是单线程程操作,所以遇到了一些比较耗时的操作时,会影响到主线程的效率,比如在扫描二维码应用中,解析QR code的过程中会造成页面相机流的卡顿。所以将耗时的解析过程放到子线程中就不会影响到主线程。 使用web worker 可以实现这个功能。 ## 1. 子线程 ### 在子线程 `web_ 阅读全文
posted @ 2023-05-26 14:34 Regina_wisdom 阅读(68) 评论(0) 推荐(0) 编辑