是Extension和 Plugin吧?这俩都是add-ons。
http://stackoverflow.com/questions/4120106/what-is-the-difference-between-fi
refox-extension-and-plugin
The difference is both historical and real:
plugins are compiled, loadable modules, originally descended from NPAPI; the
y can live outside of the browser's process space (which leads to all kinds
of fun interoperability issues and vulerabilities). The most common examples
of these are Flash and Java - both request a sub-window ("viewport" or "can
vas" (not HTML5's canvas - that's something else altogether: a native part o
f the webpage)) inside the webpage and handle it themselves, in a way that's
largely independent of the browser.
extensions are written mostly in JavaScript and XUL. Since the extensions ac
t as part of the browser, they have wider access privileges than JS-in-a-web
page, but they are still subject to some limitations. The most common way of
integration is to hook into some part of FF's functionality and extend it.
So, although the plugins and extensions might appear to be related, they're
very different technologies behind the scenes.
简单来说extension是在现有的JS API基础上搞新功能,plugin是添加原本浏览器不支持
的底层功能。
【 在 abramovich (念) 的大作中提到: 】
: 求教
--
FROM 114.242.126.*