上一页 1 ··· 280 281 282 283 284 285 286 287 288 ··· 498 下一页
摘要: On Android and in Chrome (but not on iOS), it's possible to send push notifications with a PWA. We'll start by asking the user for permission to send 阅读全文
posted @ 2019-01-02 03:28 Zhentiw 阅读(835) 评论(0) 推荐(0)
摘要: Let's say we have two strings: str1 = 'ACDEB' str2 = 'AEBC' We need to find the longest common subsequence, which in this case should be 'AEB'. Using 阅读全文
posted @ 2019-01-01 23:01 Zhentiw 阅读(264) 评论(0) 推荐(0)
摘要: It's possible to access some, but not all, of the native device features from a PWA. One that we canaccess, is the camera and camera roll. We'll use t 阅读全文
posted @ 2018-12-31 21:38 Zhentiw 阅读(820) 评论(0) 推荐(0)
摘要: Because an installed PWA is really just a web app running in a browser, there are some browser behaviors that we may not want in our app, if we're goi 阅读全文
posted @ 2018-12-30 15:32 Zhentiw 阅读(566) 评论(0) 推荐(0)
摘要: Android displays a splash screen for PWAs based on the icons and names you provide, but iOS just displays a solid color splash screen for installed PW 阅读全文
posted @ 2018-12-30 15:26 Zhentiw 阅读(618) 评论(0) 推荐(0)
摘要: We're storing JSON data in the cache - but that only applies to HTTP GET requests - and not to POST or DELETE requests. We'll add a fetch event listen 阅读全文
posted @ 2018-12-30 14:53 Zhentiw 阅读(222) 评论(0) 推荐(0)
摘要: We can view the PWA offline because we are caching the static and CDN assets for the app - but the list of todo items won't display, because those API 阅读全文
posted @ 2018-12-28 21:13 Zhentiw 阅读(291) 评论(0) 推荐(0)
摘要: Our service worker caches our static assets - but only those assets that are included in our React App. This means that assets like Bootstrap, which w 阅读全文
posted @ 2018-12-28 21:09 Zhentiw 阅读(1096) 评论(0) 推荐(0)
摘要: The default service worker that comes with create-react-app doesn't allow for very much configuration. We'll replace that default service worker in tw 阅读全文
posted @ 2018-12-28 20:56 Zhentiw 阅读(1039) 评论(0) 推荐(0)
摘要: The k-nearest neighbors algorithm is used for classification of unknown items and involves calculating the distance of the unknown item's neighbors. W 阅读全文
posted @ 2018-12-28 20:09 Zhentiw 阅读(170) 评论(0) 推荐(0)
上一页 1 ··· 280 281 282 283 284 285 286 287 288 ··· 498 下一页