摘要:
function mix(...mixins) { class Mix { constructor() { for (let mixin of mixins) { copyProperties(this, new mixin()); // 拷贝实例属性 } } } for (let mixin of 阅读全文
posted @ 2020-09-16 17:54
明明一颗大白菜
阅读(245)
评论(0)
推荐(0)
摘要:
worker_script.js: const workerCode = () => { self.onmessage = (e) => { setInterval(() => { // 自己的逻辑代码 },e.data); }; }; let code = workerCode.toString( 阅读全文
posted @ 2020-09-16 17:10
明明一颗大白菜
阅读(266)
评论(0)
推荐(0)

浙公网安备 33010602011771号