-
Notifications
You must be signed in to change notification settings - Fork 2.5k
jQuery 使用规则
Minwe edited this page Oct 13, 2014
·
1 revision
为提高代码执行效率,为兼容 Zepto.js 提供一个可能,在使用 jQuery 时做以下约定:
- 禁止使用
slideUp/Down()
fadeIn/fadeOut()
等方法; - 尽量不使用
animate()
方法; - 使用和 Zepto.js 兼容的基本选择符,不使用效率较低且与 Zepto.js 不兼容的选择符;
问题:
-
自定义事件命名空间: Zepto.js 不支持
.
语法,只能使用:
语法。
Footer