并行JavaScript代码 [英] Parallel JavaScript Code

查看:147
本文介绍了并行JavaScript代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在浏览器中并行运行JavaScript代码?我愿意牺牲一些浏览器支持(IE,Opera,其他任何东西)来获得一些优势。

Is it possible to run JavaScript code in parallel in the browser? I'm willing to sacrifice some browser support (IE, Opera, anything else) to gain some edge here.

推荐答案

如果你不必操纵dom,你可以使用webworkers ......还有一些其他的限制,但检查出来@ http://ejohn.org/blog/web-workers/

If you don't have to manipulate the dom, you could use webworkers ... there's a few other restrictions but check it out @ http://ejohn.org/blog/web-workers/

这篇关于并行JavaScript代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆