在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:quirkey/sammy开源软件地址:https://github.com/quirkey/sammy开源编程语言:JavaScript 98.9%开源软件介绍:SammyDescriptionSammy is a tiny javascript framework built on top of jQuery inspired by Ruby's Sinatra. InstallationDownload Sammy.js and install it in your public javascripts directory. Include it in your document AFTER jQuery. UsageLike Sinatra, a Sammy application revolves around 'routes'. Routes in Sammy are a little different, though. Not only can you define 'get' and 'post' routes, but you can also bind routes to custom events triggered by your application. You set up a Sammy Application by passing a Function to the
Inside the 'app' function() Above, we defined a In its coolness, Sammy can handle multiple chained asynchronous callbacks on a route.
Once you've defined an application the only thing left to do is run it. The best-practice behavior is to encapsulate
This will guarantee that the DOM is loaded before we try to apply functionality to it. DependenciesSammy requires jQuery >= 1.4.1 Get it from: http://jquery.com More!Learn!Keep informed!
AuthorsSammy.js was created and is maintained by Aaron Quint with additional features and fixes contributed by these talented individuals:
Donate!If you're using Sammy.js in production or just for fun, instead of gifting me a beer - please consider donating to the Code for Other People Fund. - you can probably spare a dollar or ten and it will be greatly appreciated. LicenseSammy is covered by the MIT License. See LICENSE for more information. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论