江剑锋 - 微信 Web App 开发最佳实践_部分1
2020-02-27 54浏览
- 1.
- 2.ங מWeb App ๋֯ݎਫ᪢ ڻ ஙמचᏐԾߝ᮱ / ᦡᦇӾஞ / ڹᒒ᯿ᕟ 2016/03/19
- 3.ىԭ౯ • ڻ • ஙמਥᗑ̵لռଘ̵ݣනଘ̵ݣஙמᗑᶭᇇ • ங מWeb ଫአ̵WeUI •https://github.com/progrape
- 4.PARK 00 ᙧว
- 5.ங מWeb App ݎᙧว • ஙמஙلמռݩள᭛ฦ݊ • ᩼᩼ग़ݎᘏࣁங ݎٖמWeb ଫአ • ங ٖמWeb ଫአ᩼᩼ӿ
- 6.ங מJS-SDK • चԭஙٖמጱᗑᶭݎૡٍ۱ • ፗളֵአೌᆙ̵ᭌࢶ̵ᶪ̵֖ᗝᒵಋᔮᕹጱᚆێ • ፗളֵአஙړמՁ̵ಚӞಚ̵̵ڭܜඪ՞ᒵஙמ׀ጱᚆێ
- 7.ங מJS-SDK • 5 ੜ 500 لռݩ • 5 ॠ 1ӡ لռݩ • 5 ޮ 1Պ ෭᧣አᰁ • 5 ӻ์ 5 Պ ෭᧣አᰁ
- 8.ԅՋԍ౯ٟӻᶉாᶭᶎ҅᮷ᵱᥝ౯ࣁݸᒒኞ౮ᓋݷҘ
- 9.لռଘݣၥᦶݩ • ق᮱لռݩളݗᴴ • ق᮱ JS-SDK ᴴ • JS ളݗਞقऒ̵ݷᗑᶭദࢧ᧣ऒݷhttp://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=sandbox/login
- 10.ஙמJS-SDK ᓋݷᳯ᷌
- 11.ங מJS-SDK • URL ۖா឴҅ݐӧଫᧆ۱“ ތ#” ݊ݸᶎ᮱ړ • ໊ḵᓋ ݷhttp://mp.weixin.qq.com/debug/cgi-bin/sandbox?t=jsapisign• ྍ឴ݐᓋ҅ݷളݗ๚ᦡᗝྋᏟጱ Content-Type
- 12.PARK 01 አಁં
- 13.ங מAndroid ਮಁᒒᔮᕹᇇړ 3% 4% 5% 8% 42% 11% 13% 14% 4.4 5.1 5.0 4.2 4.3 4.1 4.0 others
- 14.ங מAndroid ਮಁᒒړᬙሲړ 15% 30% 4% 5% 5% 1280*720 1176*1080 11% 19% 11% 1920*1080 1184*720 854*480 others 960*540 800*480
- 15.ஙמአಁᗑᕶړ 10% 5% 8% 57% 20% WIFI 4G 2G 3G Others
- 16.PARK 02 X5
- 17.X5 • ಾଘӧ ݶAndroid ᇇ̵ӧݶࣳ WebView ጱ૧ • ਧګ۸ද᭜֛҅܋ḵ • ࣗํᅩدग़
- 18.ࣗ1ғᖨਂ • ᖨਂय़ • ץදӧኞප
- 19.ऴࣗ • ᦡᗝ——᭗አ——Ⴔቘᖨਂ • URL ےᳵ౿
- 20.ἓᑀದғ//triggerWebViewCacheCleanup
- 21.ࣗ2ғflex • ᮱ړඪ೮ • ᘌٟဩ҅വគ autoprefixer ᤑق • ӧඪ೮ flex-wrap ᒵ
- 22.ࣗ3ғۖኮ • ۖኮܜᶷ • ։زᔰӧඪ೮ۖኮපຎ
- 23.ࣗ4ғᥤ᷇ • controls ഴګᶳਂࣁ • ontimeupdate Ԫկݢզ ֕҅ݎcurrentTime ӧٵᏟ • autoplay ෫ප ݢզፊ ލtouchstart Ԫկ҅ WeixinJSBridge ጱ ready Ԫկ҅ࣁࢧ᧣᯾᧣አඎන
- 24.ٌ՜ࣗ
- 25.cookie localStorage • cookie localStorage ०ප • ஙמဌํ WebView ጱ cookie localStorage ؉ᇙྛ॒ቘ • ݢᚆܻࢩғ • ٖਂӧ᪃ • ᬰᑕᤩ • ஙמԆۖധ • አಁႴቘᖨਂ • ֵአୌᦓғݶֵአ cookie localStorage
- 26.UIWebView • history.pushState ᪠ኧᳯ᷌ • ݢզֵአ hash դ๊
- 27.PARK 03 UI֛ḵ
- 28.UI֛ḵ
- 29.WeUI • ஙࢫמᴚᦡᦇਫሿ • Өஙܻמኞ UI ֛ḵӞᛘ • դᎱ॔አhttp://weui.io
- 30.WeUI ಘ weui.js react-weui vue-weui/vux
- 31.ਫֺ
- 32.UIਫֺ
- 33.UIਫֺ
- 34.
- 35.
- 36.
- 37.UIਫֺ
- 38.PARK 04 ᧣ᦶ
- 39.ங מWeb ݎᘏૡٍ • ᗑᶭദ • JS-SDKཛྷᬌفᬌڊ • ᵞ౮ Chrome DevTools • ඪ೮ᦡᗝդቘ • ඪ೮ weinre
- 40.
- 41.X5 ܋ᕆԧ Webkit —> Blink
- 42.X5 ܋ᕆ • 2016 ଙ 2 ์ӥෲᅍଶනᰁ • 2016 ଙ 3 ์ 19 ෭҅य़ᕅ 70% • 2016 ଙ 3 ์ବᛗ4์҅ڡ100% නᰁਠླ
- 43.෫ᵱ܋ᕆਮಁᒒᇇ
- 44.X5 with Blink • Chrome inspect • ຽٵጱᖨਂᒽኼ • ਠෆඪ೮ flex • canvas ඪ೮ CSS ᦡᗝᙧวᜋ • filter:blurํཛྷᔡපຎ • ද࠺ۖኮܜᶷᳯ᷌ • ։زᔰඪ೮ۖኮපຎ • autoplay ંํප҅ݢզᛔۖඎන • ᥤ᷇ጱ controls ഴګׁᆐਂࣁ
- 45.᪒ړ X5 Webkit X5 Blink