07 2018 档案

摘要:Router Scroll Position Restoration: remember and restore scroll position as the user navigates around an application. ShadowDOM v1 View Encapsulation: 阅读全文
posted @ 2018-07-31 22:26 Zhentiw 阅读(191) 评论(0) 推荐(0) 编辑
摘要:JavaScript中有两种不同数据类型的值,分别是基本数据类型与引用数据类型 基本数据类型包含5类,分别是:Number、String、Boolean、Null、Undefined 引用数据类型包含剩下的Array、Date、Math、RegExp、Object、Function等 将一个值赋给变 阅读全文
posted @ 2018-07-31 22:20 Zhentiw 阅读(232) 评论(0) 推荐(0) 编辑
摘要:Components with slots can expose their data by passing it into the slot and exposing the data using slot-scope in the template. This approach allows y 阅读全文
posted @ 2018-07-30 23:00 Zhentiw 阅读(558) 评论(0) 推荐(0) 编辑
摘要:We have model like this: 1 package com.pluralsight.bookstore.model; 2 3 import javax.persistence.*; 4 import java.util.Date; 5 6 /** 7 * @author Anton 阅读全文
posted @ 2018-07-30 22:27 Zhentiw 阅读(347) 评论(0) 推荐(0) 编辑
摘要:In this lesson, we will look at how to create variables and constants. These are containers that store data for later reference and/or retrieval. Dart 阅读全文
posted @ 2018-07-29 02:48 Zhentiw 阅读(157) 评论(0) 推荐(0) 编辑
摘要:When you bring up the on screen keyboard in a mobile app, it will cover any text input or buttons on the bottom half of the screen, which can be frust 阅读全文
posted @ 2018-07-29 02:42 Zhentiw 阅读(411) 评论(0) 推荐(0) 编辑
摘要:Mainly two things: 1. For all the creating and deleting opreations for the DB, we want to use 'REQUIRED' for the transaction. 2. For all the read only 阅读全文
posted @ 2018-07-27 02:49 Zhentiw 阅读(395) 评论(0) 推荐(0) 编辑
摘要:You can dynamically switch between components in a template by using the reserved <component> element and dynamically bind to its is attribute. By usi 阅读全文
posted @ 2018-07-26 21:26 Zhentiw 阅读(323) 评论(0) 推荐(0) 编辑
摘要:Because async components are not bundled with your app, they need to be loaded when requested. This means that your network could be slow, go down, or 阅读全文
posted @ 2018-07-26 19:18 Zhentiw 阅读(144) 评论(0) 推荐(0) 编辑
摘要:Vue provides a straight-forward syntax for loading components at runtime to help shave off initial bundle size. You simply define a function that retu 阅读全文
posted @ 2018-07-26 19:13 Zhentiw 阅读(206) 评论(0) 推荐(0) 编辑
摘要:A common scenario is to present different components based on the state of the application. Dynamic components in Vue make this simple by providing a  阅读全文
posted @ 2018-07-26 17:59 Zhentiw 阅读(489) 评论(0) 推荐(0) 编辑
摘要:in client/app.js, we put user login logic inside here, so that other module can reuse those code by call: app.js: config.js: How to use in user page: 阅读全文
posted @ 2018-07-26 00:43 Zhentiw 阅读(945) 评论(0) 推荐(0) 编辑
摘要:Render functions open up a world of customization and control by using pure JavaScript rather than Vue's templating language. When you need to pull of 阅读全文
posted @ 2018-07-26 00:38 Zhentiw 阅读(206) 评论(0) 推荐(0) 编辑
摘要:Vue's functional components are small and flexible enough to be declared inside of .vue file next to the main component. This allows you to mix jsx an 阅读全文
posted @ 2018-07-25 00:47 Zhentiw 阅读(349) 评论(0) 推荐(0) 编辑
摘要:Declaring templates and elements inside of templates works great for most scenarios. Sometimes you need a bit more control over what your component wi 阅读全文
posted @ 2018-07-24 22:09 Zhentiw 阅读(214) 评论(0) 推荐(0) 编辑
摘要:Functional templates allow you to create components consisting of only the template tag and exposing the props passed into the template with the props 阅读全文
posted @ 2018-07-24 20:57 Zhentiw 阅读(459) 评论(0) 推荐(0) 编辑
摘要:To bootsrap the application use the following Maven archetype: mvn -DarchetypeGroupId=org.codehaus.mojo.archetypes -DarchetypeArtifactId=webapp-javaee 阅读全文
posted @ 2018-07-24 02:21 Zhentiw 阅读(266) 评论(0) 推荐(0) 编辑
摘要:Vue's slots enable you to define where content of a component should land when you define the content inside of a parent component. You can also name 阅读全文
posted @ 2018-07-22 18:03 Zhentiw 阅读(204) 评论(0) 推荐(0) 编辑
摘要:While traditional Vue components require a data function which returns an object and a method object with your handlers, vue-class-componentflattens c 阅读全文
posted @ 2018-07-22 17:53 Zhentiw 阅读(1152) 评论(0) 推荐(0) 编辑
摘要:While traditional Vue components require a data function which returns an object and a method object with your handlers, vue-class-componentflattens c 阅读全文
posted @ 2018-07-20 21:06 Zhentiw 阅读(696) 评论(0) 推荐(0) 编辑
摘要:A Promise invokes a function which stores a value that will be passed to a callback. So when you wrap a Promise with an Observable, you'll always get 阅读全文
posted @ 2018-07-19 18:07 Zhentiw 阅读(433) 评论(0) 推荐(0) 编辑
摘要:You most likely already have data or properties in your template which are controlled by third-party components or updated using data binding. You can 阅读全文
posted @ 2018-07-18 20:03 Zhentiw 阅读(894) 评论(0) 推荐(0) 编辑
摘要:domStreams enable you to pass additional data along the stream that can be provided by the template (such as data coming from a v-forrendering of an A 阅读全文
posted @ 2018-07-18 19:53 Zhentiw 阅读(410) 评论(0) 推荐(0) 编辑
摘要:Streams give you the power to handle a "pending" state where you've made a request for data, but the data hasn't yet returned. You can leverage this p 阅读全文
posted @ 2018-07-18 19:46 Zhentiw 阅读(421) 评论(0) 推荐(0) 编辑
摘要:Splitting a stream into multiple streams causes new subscriptions. You can think of new subscriptions as "invoking a function". So if your original st 阅读全文
posted @ 2018-07-18 18:50 Zhentiw 阅读(207) 评论(0) 推荐(0) 编辑
摘要:Wrapping the creation of an Observable inside of a Function allows you delay the creation of the Observable until it is needed. This becomes really im 阅读全文
posted @ 2018-07-18 01:43 Zhentiw 阅读(508) 评论(0) 推荐(0) 编辑
摘要:When an image fails to load, it triggers an error event. You can capture the error event and merge it with your image loading stream to provide a back 阅读全文
posted @ 2018-07-18 01:37 Zhentiw 阅读(362) 评论(0) 推荐(0) 编辑
摘要:You can map remote data directly into your Vue.js templates using RxJS. This lesson uses axios (and the vue-axios library which exposes axios on compo 阅读全文
posted @ 2018-07-17 20:18 Zhentiw 阅读(671) 评论(0) 推荐(0) 编辑
摘要:The domStreams component property enables you to access Events from your Vue.js templates as Streams insides your subscriptions function. You can then 阅读全文
posted @ 2018-07-17 19:57 Zhentiw 阅读(362) 评论(0) 推荐(0) 编辑
摘要:When you want to get the current value of a subject, you need to switch BehaviorSubject, it always emit the latest value or throw error. Then you can 阅读全文
posted @ 2018-07-17 02:11 Zhentiw 阅读(311) 评论(0) 推荐(0) 编辑
摘要:1. Color Picker (Chrome) You might know how to use color picker in Chrome, recently there is a feature inside color picker which is "Contrast Ratio", 阅读全文
posted @ 2018-07-15 18:41 Zhentiw 阅读(234) 评论(0) 推荐(0) 编辑
摘要:We can use Subject as Observable and Observer: // Subject should be only used to emit value for private // Using subject as an Observer const subject 阅读全文
posted @ 2018-07-12 21:04 Zhentiw 阅读(182) 评论(0) 推荐(0) 编辑
摘要:Storybook is a UI component development environment for React, Vue, and Angular. With that, you can develop UI components without running your app. He 阅读全文
posted @ 2018-07-12 19:05 Zhentiw 阅读(326) 评论(0) 推荐(0) 编辑
摘要:Prior odd: The idea is to take the odds for something happening (against it not happening), which we´ll write as prior odds. For example: The chances 阅读全文
posted @ 2018-07-11 20:04 Zhentiw 阅读(4172) 评论(0) 推荐(0) 编辑
摘要:Winston is a popular logging library for NodeJS which allows you to customise the output, as well as different logging targets. This lesson covers con 阅读全文
posted @ 2018-07-11 18:32 Zhentiw 阅读(1077) 评论(0) 推荐(0) 编辑
摘要:Github To stop having to change configuration settings in production code and to stop secure information like usernames and password being stored in s 阅读全文
posted @ 2018-07-11 18:16 Zhentiw 阅读(139) 评论(0) 推荐(0) 编辑
摘要:DebounceTime: It's like delay, but passes only the most recent value from each burst of emissions. ThrottleTime: Lets a value pass, then ignores sourc 阅读全文
posted @ 2018-07-10 21:07 Zhentiw 阅读(302) 评论(0) 推荐(0) 编辑
摘要:Take your end to end tests to the next level by comparing your current application's view with an already accepted screenshot. With the combination of 阅读全文
posted @ 2018-07-10 20:53 Zhentiw 阅读(439) 评论(0) 推荐(0) 编辑
摘要:Often, we end up creating multiple unit tests for the same unit of code to make sure it behaves as expected with varied input. This is a good practice 阅读全文
posted @ 2018-07-10 19:27 Zhentiw 阅读(423) 评论(0) 推荐(0) 编辑
摘要:Use can use colour and styles to make it easy to spot errors and group common functionality into blocks when viewing a NodeJS console. This lesson wil 阅读全文
posted @ 2018-07-10 18:34 Zhentiw 阅读(167) 评论(0) 推荐(0) 编辑
摘要:Often times when developing web applications, you need to open multiple tabs to run different scripts to start the application. This can all be done w 阅读全文
posted @ 2018-07-10 18:16 Zhentiw 阅读(420) 评论(0) 推荐(0) 编辑
摘要:Origianl article Protal from Angular CDK, is a way to create dynammic component. Consider an example of Page toolbar. This toolbar should show differe 阅读全文
posted @ 2018-07-09 20:34 Zhentiw 阅读(516) 评论(1) 推荐(0) 编辑
摘要:We want to make sure that when we ship new code, our users can use the application. The best way we've found to do that is to write automated tests th 阅读全文
posted @ 2018-07-09 18:39 Zhentiw 阅读(236) 评论(0) 推荐(0) 编辑
摘要:Sometime we want to set a default or fallback value when network request failed. Sometime we want to just throw the error again: You know about the fi 阅读全文
posted @ 2018-07-08 01:13 Zhentiw 阅读(426) 评论(0) 推荐(0) 编辑
摘要:When we want to handle error observable in RxJS v6+, we can use 'retryWhen' and 'delayWhen': 阅读全文
posted @ 2018-07-08 01:06 Zhentiw 阅读(172) 评论(0) 推荐(0) 编辑
摘要:We are able to cancel the fetch request by using AbortController with RxJS Observable. 阅读全文
posted @ 2018-07-06 18:05 Zhentiw 阅读(317) 评论(0) 推荐(0) 编辑
摘要:exhaustMap: It drop the outter observable, just return the inner observable, and it waits until previous observable complete before emit next observab 阅读全文
posted @ 2018-07-06 17:56 Zhentiw 阅读(449) 评论(0) 推荐(0) 编辑
摘要:With the right process in place, snapshot tests can be a great way to detect unintended changes in any part of your application that can be serialized 阅读全文
posted @ 2018-07-06 17:14 Zhentiw 阅读(165) 评论(0) 推荐(0) 编辑
摘要:Integration tests let us keep our tests fast and reliable. They also allow us to test scenarios that are hard to recreate in a full end-to-end setup. 阅读全文
posted @ 2018-07-05 22:53 Zhentiw 阅读(299) 评论(0) 推荐(0) 编辑
摘要:Inside one file, you can freely mark the number 1-9: And jump to Number of bookmark: It helps to generate type safe interface based the json file you 阅读全文
posted @ 2018-07-05 19:45 Zhentiw 阅读(297) 评论(0) 推荐(0) 编辑
摘要: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 阅读(342) 评论(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 阅读(425) 评论(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 阅读(330) 评论(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 阅读(992) 评论(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 阅读(173) 评论(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 阅读(170) 评论(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 阅读(140) 评论(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 阅读(192) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示