Let's say we created a small widget or web app. or just a plugin - and we want to distribute it to the public. (JS, jQuery...)
...and we have no server- or we are afraid it will close one day.
...and we'd like to provide that script like an url-t
开发者_StackOverflow中文版o-script to be included into a script tag.
Like we do with the jQ library -- Is there any provider that allows us to store codes and generates a livetime url to it?? That we can mantain, change or fix it anytime without the need to inform all users?
Have Google something like that?
Or am I dreaming?
You can upload on github. It's free for open-source projects, and you can even link directly to the repo's master branch; example:
https://github.com/douglascrockford/JSON-js/raw/master/json_parse.js
(There are good reasons not to do that as a general rule — the master branch could get a breaking change committed to it, for example — but it's there if you need it.)
继续阅读:jqueryphp
精彩评论