上一页 1 ··· 416 417 418 419 420 421 422 423 424 ··· 492 下一页
摘要: With endsWith && startsWith, you can easily find out whether the string ends or starts with some other string: example: So you don't need to write reg 阅读全文
posted @ 2016-05-16 04:32 Zhentiw 阅读(433) 评论(0) 推荐(0)
摘要: We want to do offline first, the first thing we need to do is we should able to catch the browser request and return our cache data from serice worker 阅读全文
posted @ 2016-05-15 21:49 Zhentiw 阅读(157) 评论(0) 推荐(0)
摘要: You can debug with chrom dev tool: 1. Use console to debug service worker: Swith to sw.js context then you can access 'self' object 2. Set breakpoint: 阅读全文
posted @ 2016-05-15 21:08 Zhentiw 阅读(253) 评论(0) 推荐(0)
摘要: The No1. is because, service worker only take control after it is loaded. But the first time we go to the page, service worker actually is not there, 阅读全文
posted @ 2016-05-15 20:56 Zhentiw 阅读(190) 评论(0) 推荐(0)
摘要: Service worker stays between our browser and noetwork requests. It can help to fetch data from cache and cache the data from Internet. To get our serv 阅读全文
posted @ 2016-05-15 17:22 Zhentiw 阅读(265) 评论(0) 推荐(0)
摘要: Why offline first? Imagin you are visiting a website, it is fine if wifi connection is good. It might be also "fine" if show you "Your don't have inte 阅读全文
posted @ 2016-05-15 16:35 Zhentiw 阅读(227) 评论(0) 推荐(0)
摘要: If you are looking for a host website, you can try Firebase, heroku or AWS... Today, I tried to deploy a simple website to Firebase, it looks like pre 阅读全文
posted @ 2016-05-15 03:56 Zhentiw 阅读(264) 评论(0) 推荐(0)
摘要: Get more mileage from your console output by going beyond mere string logging - log entire introspectable objects, log multiple items in one call, and 阅读全文
posted @ 2016-05-14 05:32 Zhentiw 阅读(319) 评论(0) 推荐(0)
摘要: Go beyond console.log by learning about log levels, filtering log output and structuring your output to be meaningful and concise. The JavaScript cons 阅读全文
posted @ 2016-05-14 03:59 Zhentiw 阅读(197) 评论(0) 推荐(0)
摘要: Because semantic-release requires a specific message format, it's easier to follow this convention using a tool called commitizen. In this lesson, we' 阅读全文
posted @ 2016-05-13 05:39 Zhentiw 阅读(378) 评论(0) 推荐(0)
上一页 1 ··· 416 417 418 419 420 421 422 423 424 ··· 492 下一页