简体   繁体   中英

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 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.

我相信如果您不需要更新jQuery,只需将jQuery的源代码复制到您的扩展代码库中即可。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM