Upgrade to Pro — share decks privately, control downloads, hide ads and more …

淘宝1212扫货小分队项目分享

d2forum
January 05, 2013
440

 淘宝1212扫货小分队项目分享

d2forum

January 05, 2013
Tweet

Transcript

  1. 项目背景 在一起,淘不同 项目成员 @ 伯飞 @ 道璘 @ 堂主 @

    伊泽 @ 灵玉 —— SNS 前端团队 共享宝贝,扫货清单,同享优惠,购物交流
  2. 效 率 STEP 2 约定接口 AJAX ( JSON , JSONP

    ) {"code":"0","msg":" 系统错误 "} {"code":"-1","msg":" 未登录 "} {"code":"1","msg":" 成功 "} 约定参数 AJAX , html5 自定义属性“ data-” <div id="invited" data-userid="123345" data-username="shuqi" data-client="332"> 邀请 </div>
  3. 效 率 STEP 3 l 前端规范统一 API(QZ) 简约原则 Qz.dataset(node) Qz.api.define({key:value})

    Qz.api(define,dataset,callback) Qz.alert() Qz.buffer() Qz.popup() Qz.getToken() Qz.tooltip()
  4. 技术应用 css3-transition 平滑( setInterval ) -ms-transition: opacity 0.1s ease-in-out; -webkit-transition:

    opacity 0.1s ease-in-out; -moz-transition: opacity 0.1s ease-in-out; -o-transition: opacity 0.1s ease-in-out; transition: opacity 0.1s ease-in-out; css3-transform 速度提升 transform: scale(1.7,1.7); 低浏览器优雅降级方案