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
Base2
Search
othree
September 26, 2011
Programming
1
990
Base2
othree
September 26, 2011
Tweet
Share
More Decks by othree
See All by othree
How GitHub Supports Vim License Detection, The Five Years Journey
othree
1
2.2k
WAT JavaScript Date
othree
3
2.2k
Modern HTML Email Development
othree
3
2.7k
MRT & GIT
othree
1
2.3k
YAJS.vim and Vim Syntax Highlight
othree
1
3.1k
Web Trends to 2015
othree
4
340
Transducer
othree
9
3.1k
HITCON 11 Photographer
othree
4
530
fetch is the new XHR
othree
6
3.6k
Other Decks in Programming
See All in Programming
go directiveを最新にしすぎないで欲しい話──あるいは、Go 1.26からgo mod initで作られるgo directiveの値が変わる話 / Go 1.26 リリースパーティ
arthur1
2
570
AIコードレビューの導入・運用と AI駆動開発における「AI4QA」の取り組みについて
hagevvashi
0
500
クライアントワークでSREをするということ。あるいは事業会社におけるSREと同じこと・違うこと
nnaka2992
1
350
エンジニアの「手元の自動化」を加速するn8n 2026.02.27
symy2co
0
160
grapheme_strrev関数が採択されました(あと雑感)
youkidearitai
PRO
1
230
20260228_JAWS_Beginner_Kansai
takuyay0ne
5
580
Angular-Apps smarter machen mit Gen AI: Lokal und offlinefähig - Hands-on Workshop!
christianliebel
PRO
0
120
Rで始めるML・LLM活用入門
wakamatsu_takumu
0
190
「やめとこ」がなくなった — 1月にZennを始めて22本書いた AI共創開発のリアル
atani14
0
400
DevinとClaude Code、SREの現場で使い倒してみた件
karia
1
1.1k
AI駆動開発の本音 〜Claude Code並列開発で見えたエンジニアの新しい役割〜
hisuzuya
4
520
「接続」—パフォーマンスチューニングの最後の一手 〜点と点を結ぶ、その一瞬のために〜
kentaroutakeda
1
350
Featured
See All Featured
Keith and Marios Guide to Fast Websites
keithpitt
413
23k
Self-Hosted WebAssembly Runtime for Runtime-Neutral Checkpoint/Restore in Edge–Cloud Continuum
chikuwait
0
400
Faster Mobile Websites
deanohume
310
31k
Site-Speed That Sticks
csswizardry
13
1.1k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.2k
The State of eCommerce SEO: How to Win in Today's Products SERPs - #SEOweek
aleyda
2
9.9k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
760
Speed Design
sergeychernyshev
33
1.6k
Building AI with AI
inesmontani
PRO
1
800
Designing Dashboards & Data Visualisations in Web Apps
destraynor
231
54k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
1.9k
GraphQLの誤解/rethinking-graphql
sonatard
75
11k
Transcript
othree • http://blog.othree.net • ۃ၌Ҧஔ(JavaScript, (X)HTML, CSS, ....) • MightHappyDesigner
1
ʞʱᙒᑺʞɤੵҳᅂ˪ 2
DEMO 3
4
5
6
7
8
base2 A JavaScript Library by Dean Edwards 9
Dean Edwards 10
IE7.js ˢฆழIE7ᒔϘ 11
IE8.js ฆழIE8ᒔӚ̈ 12
base2 13
ʔԶਗतࣖ 14
ʔԶਗतࣖ ӚϞUIᗫ̌ঐ 15
ʔԶਗतࣖ ӚϞUIᗫ̌ঐ ʔ၍Ajax 16
ʔԶਗतࣖ ӚϞUIᗫ̌ঐ ʔ၍Ajax ԟՑֵϞʡჿk 17
੶JavaScriptႧԊ 18
һ࢙ක೯Application 19
base2 •Base •Map •Collection •RegGrp •Module •Package •Enumerable •JavaScript 20
base2 •Base •Map •Collection •RegGrp •Module •Package •Enumerable •JavaScript 21
Base 22
ᘱו 23
.prototype 24
Base.extend({k: v}) 25
Map, Collection, Enumerable 26
JavaScriptࡡԸӚϞ 27
Enumerable Map Collection every filter invoke map pluck reduce some
add getAt item putAt removeAt reverse sort copy forEach get getKeys getValues has merge 28
RegGrp • ɓࡈRegular Expressionي • εଡ଼pattern, replacement 29
JavaScript • Array2 • Date2 • String2 30
Array2 • pop • push • contains • sort, reverse
• filter • ...... 31
Date2 • toISOString • now • parse 32
Date2 • toISOString • now • parse 32 (“2008/03/29”)
String2 • trim 33
Cast in Native Object • base2.JavaScript.bind(window); 34
base2.DOM 35
Yet Another JS Lib Without Document 36
ࡌ͍ᓭᚎኜ፹Ⴌ 37
อᅺྼЪ 38
• view.getComputedStyle() • node.compareDocumentPosition() • document.activeElement (HTML5) • document.createEvent() •
document|element.addEventListener() • document|element.removeEventListener() • document|element.dispatchEvent() • document|element.querySelector() • document|element.querySelectorAll() 39
• view.getComputedStyle() • node.compareDocumentPosition() • document.activeElement (HTML5) • document.createEvent() •
document|element.addEventListener() • document|element.removeEventListener() • document|element.dispatchEvent() • document|element.querySelector() • document|element.querySelectorAll() 39
• element.ownerDocument • element.getAttribute() • element.hasAttribute() • element.matchesSelector() • element.setAttribute()
40
• event.target • event.relatedTarget • event.initEvent() • event.preventDefault() • event.stopPropagation()
• style.getPropertyValue() • style.setProperty() 41
Rules for JavaScript Library Authors http://dean.edwards.name/weblog/2007/03/rules/ 42
ഐሞ 43
ၾʔΝٙJS Lib 44 Ꮠ༈ܘϞ͜
ҢӚί͜ 45
Ңɰʔٝ༸Ϟም͜ 46
νО՟ 47
google://base2 48
http://code.google.com/p/base2/ 49
Thanks For Your Attention 50