上一页 1 ··· 303 304 305 306 307 308 309 310 311 ··· 477 下一页
摘要: So each phone's width is 750rpx. And according to the device ratio (width:height), we can calucalate the height in rpx. For example iPhone 5: 320px x 阅读全文
posted @ 2018-07-04 18:33 Zhentiw 阅读(389) 评论(0) 推荐(0)
摘要: Many applications have features that can be used with slight variations. Instead of maintaining multiple tests with nearly identical code, we can take 阅读全文
posted @ 2018-07-04 18:19 Zhentiw 阅读(461) 评论(0) 推荐(0)
摘要: We’ll often need to access the same DOM elements multiple times in one test. Your first instinct might be to use cy.getand assign the result to a vari 阅读全文
posted @ 2018-07-04 18:15 Zhentiw 阅读(358) 评论(0) 推荐(0)
摘要: We often only show UI elements as a result of some user interaction. Cypress detects visibility and by default won’t allow your test to interact with 阅读全文
posted @ 2018-07-04 18:12 Zhentiw 阅读(1015) 评论(0) 推荐(0)
摘要: By default, browsers load the assets in a render-blocking way. Modern browsers introduced prefetch and preload which let us specify the priority for a 阅读全文
posted @ 2018-07-02 21:18 Zhentiw 阅读(194) 评论(0) 推荐(0)
摘要: By default, vue-router doesn’t lazy load the routes unless you tell it to do it. Lazy loading of the non-critical routes is one of the points of the P 阅读全文
posted @ 2018-07-02 21:01 Zhentiw 阅读(196) 评论(0) 推荐(0)
摘要: Even if you have your application fully cached, you couldn’t perform any external request without internet connection. That’s why in order to build an 阅读全文
posted @ 2018-07-02 20:54 Zhentiw 阅读(173) 评论(0) 推荐(0)
摘要: Service Workers get installed and activated in the background, but until we reload the page they don’t take full control in the app. Showing a notific 阅读全文
posted @ 2018-07-02 20:08 Zhentiw 阅读(227) 评论(0) 推荐(0)
摘要: The Angular <ng-container> is a grouping element that doesn't interfere with styles or layout because Angular doesn't put it in the DOM. When we using 阅读全文
posted @ 2018-06-24 19:12 Zhentiw 阅读(227) 评论(0) 推荐(0)
摘要: We can take advantage of sticky positioning to keep a section header at the top of the page while the user scrolls. This is useful for neat categorisa 阅读全文
posted @ 2018-06-17 11:49 Zhentiw 阅读(189) 评论(0) 推荐(0)
上一页 1 ··· 303 304 305 306 307 308 309 310 311 ··· 477 下一页