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
基于 SeaJS 的调试实践
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
lifesinger
September 17, 2012
Technology
1.7k
19
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
基于 SeaJS 的调试实践
lifesinger
September 17, 2012
More Decks by lifesinger
See All by lifesinger
前端的云时代
lifesinger
18
1.3k
SeaJS 与 Arale
lifesinger
12
1.4k
SeaJS 从入门到精通
lifesinger
44
7.9k
小脚本大世界
lifesinger
10
950
Other Decks in Technology
See All in Technology
From Prompt Engineering to Loop Engineering
shibuiwilliam
1
230
AWS Security Agent といっしょに脅威モデリングをやってみよう
amarelo_n24
1
210
螺旋型キャリアの生存戦略 / kinoko-conf2026
rakus_dev
1
1k
AIのReact習熟度を測る
uhyo
2
680
AI時代に求められる技術力 フロンティア・クリエイティビティ / Technical Excellence in the AI Era: Frontier Creativity
kaonavi
0
110
Agile and AI Redmine Japan 2026
hiranabe
4
480
AIをフル活用してオンコール機能のプロトタイプを2日で作った話 / Building an AI-Powered On-Call Prototype in Just Two Days
nari_ex
0
130
AWS Security Hub CSPMの成功・失敗体験
cmusudakeisuke
0
560
Lightning近況報告
kozy4324
0
220
從開發到部署全都交給 AI:實作 AI 驅動的自動化流程
appleboy
0
160
Microsoft のサポートとフィードバック総まとめ
murachiakira
PRO
0
110
Deep Data Security 機能解説
oracle4engineer
PRO
2
120
Featured
See All Featured
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
37
6.5k
Introduction to Domain-Driven Design and Collaborative software design
baasie
1
860
Documentation Writing (for coders)
carmenintech
77
5.4k
Fireside Chat
paigeccino
42
4k
Connecting the Dots Between Site Speed, User Experience & Your Business [WebExpo 2025]
tammyeverts
11
950
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
47
8.2k
Marketing to machines
jonoalderson
1
5.5k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
55
3.4k
Color Theory Basics | Prateek | Gurzu
gurzu
0
370
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.3k
How To Speak Unicorn (iThemes Webinar)
marktimemedia
1
490
Lightning talk: Run Django tests with GitHub Actions
sabderemane
0
200
Transcript
基于 SeaJS 的调试实践 ⽟玉伯 2012.9.14 @沪JS Monday, September 17, 12
关于我 • ⺩王保平 / lifesinger / ⽟玉伯 • ⽀支付宝 -
前端开发部 • KISSY、SeaJS、Arale 2 …… • 微博:@⽟玉伯也叫射雕 Monday, September 17, 12
Topics I. 解 combo 和源码映射:map II. 让继承链清晰:class III. bug fix
与 mock:modify IV. 释放 F5 键:reload V. 原理 Monday, September 17, 12
Problem 1 1. 压缩导致难以调试 2. 合并导致难以定位到具体⽂文件 Monday, September 17, 12
Solution 1. 通过 ?seajs-debug 开启调试 2. 通过 map config 解
combo 并映射到本地⽂文件 Monday, September 17, 12
Result https://github.com/seajs/seajs/issues/270 Monday, September 17, 12
Problem 2 看不懂的继承信息 Monday, September 17, 12
Solution 1. 通过 aralejs/class 来创建类 2. ⾃自动与 seajs 打通,获取关联的模块信息 Monday,
September 17, 12
Result 继承信息⼀一⺫⽬目了然 Monday, September 17, 12
Problem 3 依赖服务接⼝口才能调试 Monday, September 17, 12
Solution 通过 modify 可以 mock 接⼝口 Monday, September 17, 12
Result 这个可以⽤用来骗 iPad .... Monday, September 17, 12
Bonus 不⽤用 F5 刷新了 Monday, September 17, 12
原理 • SeaJS 是⼀一个模块加载器 • 控制了⼊入⼝口和出⼝口 • So,随⼼心所欲 Monday, September
17, 12
http://seajs.org/ RequireJS is good, but SeaJS is better. Monday, September
17, 12
Q ? A : Thanks Monday, September 17, 12