文章分类 -  Web

摘要:在这篇文章中,我们将介绍15个让你的jQuery更加有效的技巧,大部分关于性能提升的,希望大家能够喜欢!1. 尽量使用最新版本的jQuery类库jQuery项目中使用了大量的创新。最好的方法来提高性能就是使用最新版本的jQuery。每一个新的版本都包含了优化的bug修复。对我们来说唯一要干的就是修改tag,何乐而不为呢?我们也可以使用免费的CDN服务,例如, Google来存放jQuery类库。<!-- Include a specific version of jQuery --><script src="http://ajax.googleapis.com/aj 阅读全文
posted @ 2011-11-17 22:15 sofootball 阅读(118) 评论(0) 推荐(0)
摘要:Json2Template 介绍Json2Template.js是一个Jquery插件, 用来绑定JavaScript对象到Html 模板中$("#div").bindTemplate({ source : json object, template : null | $("#template") | "<div>{{object}}</div>", dateFormat : "d.m.y", tagOpen : "{{", tagClose : "}}&quo 阅读全文
posted @ 2011-10-30 10:07 sofootball 阅读(3927) 评论(0) 推荐(0)