开发者

using jQuery in Safari Extension

I am trying to make a simple Safari 5 Extension that just injects a custom javascript. Any ideas how can I make use of jQuery in this custom script, please? I only know it's possible, because it is mentioned on one of开发者_Go百科 WWDC videos, but I don't know how to do it.

Thanks


You can include jquery.js as a "start script". Your regular script (as an "end script") will see it.


I believe that if you don't need to keep jQuery updated, just copying the source code of jQuery into your extension's code base should work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜