Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
淘宝旅行门票iPad版开发
Search
ningzbruc
June 06, 2014
Programming
140
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
淘宝旅行门票iPad版开发
淘宝旅行门票iPad版开发
ningzbruc
June 06, 2014
More Decks by ningzbruc
See All by ningzbruc
如何写出一个优秀的开源库
ningzbruc
0
66
去啊无线前端的一天
ningzbruc
1
190
React & Component
ningzbruc
0
45
阿里旅行去啊H5首页总结&Promise
ningzbruc
0
270
KISSY.Base - all about that Base
ningzbruc
0
140
Hammer.js
ningzbruc
1
340
Travel on KISSY mini
ningzbruc
0
210
Events
ningzbruc
2
130
Why YUI3
ningzbruc
0
190
Other Decks in Programming
See All in Programming
【やさしく解説 設計編・中級 #6】良いアーキテクチャとは ~ 一本の登り道の、行き先 ~
panda728
PRO
0
180
Embedded SREと共に達成した会員管理システムのAWS移行 - SRE NEXT 2026 ランチスポンサーセッション
niftycorp
PRO
1
3.1k
為什麼你並不需要ViewModel / No, you don't need a ViewModel
lovee
1
410
Prismを使った型安全な暗号化_関数型まつり2026
_fhhmm
0
150
生成AI導入の「期待外れ」を乗り越える ー 開発フロー改革が目指す、真の組織変革
starfish719
0
2.5k
任せる範囲はこう広がった / How the Scope of AI Delegation Has Expanded
nrslib
1
280
改善しないと、タスクが回らない。 “てんこ盛りポジション” を引き継いだ情シスの、入社3ヶ月の業務改善録
krm963
0
210
AIエージェントで 変わるAndroid開発環境
takahirom
2
730
【やさしく解説 設計編・中級 #4】ルールの寿命と、システムの年輪
panda728
PRO
2
170
コーディングルールの鮮度を保ちたい for SRE NEXT 2026 / keep-fresh-go-internal-conventions-sre-next-2026
handlename
0
150
はてなアカウント基盤 State of the Union
cockscomb
1
1.3k
ITヒヤリハットを整理してみた ~ライフサイクルと原因から考える再発防止策~
koukimiura
1
120
Featured
See All Featured
エンジニアに許された特別な時間の終わり
watany
108
250k
Reality Check: Gamification 10 Years Later
codingconduct
0
2.2k
My Coaching Mixtape
mlcsv
0
180
A designer walks into a library…
pauljervisheath
211
24k
Documentation Writing (for coders)
carmenintech
77
5.4k
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
コードの90%をAIが書く世界で何が待っているのか / What awaits us in a world where 90% of the code is written by AI
rkaga
62
45k
Mobile First: as difficult as doing things right
swwweet
225
10k
The SEO Collaboration Effect
kristinabergwall1
1
510
A Tale of Four Properties
chriscoyier
163
24k
Marketing to machines
jonoalderson
1
5.6k
A better future with KSS
kneath
240
18k
Transcript
门票iPad版总结 虎牙
None
None
None
Differences ‧ 更大的屏幕 ‧ 更细致的交互 ‧ 更完美的体验 ‧ 更少的兼容性
Differences ‧ 更大的屏幕 ‧ 更细致的交互 ‧ 更完美的体验 ‧ 更少的兼容性
‧ 横竖屏切换 ‧ 页面局部刷新 ‧ 历史记录正常 ‧ 滚动加载更多 ‧ 重构组件交互
Details
Orientation //横竖屏时更新banner轮播 Orientation.change(function(e) { self.slide.refresh(); }, true);
if (useHistoryState) { history.replaceState({ isMapMode: this.isMapMode }, '景点列表', url); this.toggleListMode(true);
} else { this.redirectTo(url); } History
# 新交互
None
None
None
Modules & Extensions
Modules & Extensions
Modules & Extensions var Search = GlobalBase.extend([ GlobalTMS, GlobalSearch, GlobalCityList,
Banner ], {});
Modules & Extensions var List = GlobalBase.extend([ GlobalTMS, GlobalSearch, GlobalCityList,
ListPopup, ListLoad, ListMap ], {});
Modules & Extensions var Scenic = GlobalBase.extend([ Slide, Desc, Map
], {});
AOP & SuperBase function ListLoad() {} ! S.augment(ListLoad, { initializer:
function() { this.nearScenicName = this.getParam('scenicName'); this.searchByScenic = !!this.nearScenicName; this.doAfter(this.renderListLoad, this, 'renderUI'); this.doAfter(this.bindListLoad, this, 'bindUI'); this.doAfter(this.syncListLoad, this, 'syncUI'); }, destructor: function() {} });
AOP & SuperBase function ListLoad() {} ! S.augment(ListLoad, { initializer:
function() { this.nearScenicName = this.getParam('scenicName'); this.searchByScenic = !!this.nearScenicName; this.doAfter(this.renderListLoad, this, 'renderUI'); this.doAfter(this.bindListLoad, this, 'bindUI'); this.doAfter(this.syncListLoad, this, 'syncUI'); }, destructor: function() {} });
http://gallery.kissyui.com/aop/1.1/guide/index.html http://gallery.kissyui.com/superbase/1.0/guide/index.html AOP & SuperBase
Widgets ‧ AOP ‧ SuperBase ‧ Orientation ‧ AlignBox ‧
HistoryList ‧ SimpleSlide ‧ iScroll5 ‧ Scroller ‧ ScrollList ‧ GeoLocation ‧ AutoComplete ‧ and more…
# Demo
‧ Zepto to KISSY mini ‧ iScroll4 to iScroll5 ‧
页面宽度自适应 ‧ 键盘打开时旋转屏幕性能很差 ‧ 页面刷新也会触发onpopstate事件 ‧ 接入淘宝iPad客户端极简支付 Problems
zepto 2 mini • Node • Event • UA •
Ajax • Lang • duration/timeout • … https://speakerdeck.com/ningzbruc/travel-on-kissy-mini
The end.