Tag:attribute

  • Why does vue3.0 use proxy to implement responsive?

    Time:2020-4-6

    Object.definePropertyOnly properties of the object can be hijacked, andProxyIs a direct proxy objectBecauseObject.definePropertyOnly properties can be hijacked, and each property of the object needs to be traversed. andProxyObjects can be proxied directly. Object.definePropertyYou need to manually add new attributesObserveAs a result ofObject.definePropertyHijacking is the property of the object, so when you add a new property, […]

  • IOS rich text editing factory makes the code clearer

    Time:2020-4-6

    Recently, rich text is commonly used, but editing a rich text requires a lot of attributes, which is very inconvenient to write. So I reorganize these related attributes and simplify it by using the chain method. See demo below for the effect The project address is at the bottom of the article (the implementation is […]

  • Spring 5 source code analysis series (7) – XML based dependency injection (1)

    Time:2020-4-6

    Preface: the previous series of articles analyzed the initialization process of spring IOC container, and then analyzed the dependency injection of spring. 1. Time of dependency injection After the spring IOC container completes the positioning, loading and registration of the bean definition resources, the IOC container has managed the data related to the bean definition. […]

  • CSS3 elastic box

    Time:2020-4-6

    Some knowledge of elastic box model 1、 Brief introduction Flexible box model (flexible box or flexbox) is a new layout module of CSS3, which is officially called CSS flexible box layout module. It is used to realize the alignment, direction, sorting (even in the case of project size, position and dynamic generation) of items in […]

  • Tomcat source code analysis series (7) context

    Time:2020-4-6

    PrefaceThe last article briefly introduces Host, which is about the starting time of Context. It is called start method in ContainerBase#startInternal (Engine) and sub container in Engine’s start method and so on, and start method of all sub containers will be called. 1. StandardContext#initInternal @Override protected void initInternal() throws LifecycleException { super.initInternal(); // Register the […]

  • Webback4 from scratch

    Time:2020-4-6

    Webpack4 tutorial from scratch Prerequisite Install node.jsCurrent node.js version: v12.13.1Current NPM version: 6.12.1 Update on January 6, 2020, go through the document again, find some omissions, and supplement This article starts from scratch to build a webpack. It only needs to follow the steps step by step. Finally, it can be built successfully. Please feel […]

  • Invalid options in vue.config.js: “baseUrl” is not allowed

    Time:2020-4-6

    In the process of running the vue-cli3 project, the console reports an error The reason for the error is that the baseURL is used in the vue.config.js file created by yourself, but the vue-cli version applicable to the baseURL is before 3.2.0, so the error will be reported when the code is running. Change the […]

  • (27) asp.net core. Net standard rest library refresh

    Time:2020-4-6

    1. introduction RefitIt is an automatic type safe rest library inspired by square’s retrofit Library (Java). Through httpclient network request (post, get, put, delete and other encapsulation), the data returned by rest API is converted intoPoco (plain ordinary C × object, simple C × object)To JSON. In fact, our application program encapsulates the request parameters, […]

  • Usage scenario of Vue calculation attribute computed and listener Watch

    Time:2020-4-5

    Original link: HTTPS: / / dsx2016. COM /? P = 679WeChat official account: Senior brother 2016 Features and differences vueOfcomputedOption is mainly used to synchronize data processing, whilewatchOption is mainly used for event dispatch, asynchronous Both of them can achieve the same effect, but based on their respective characteristics, there will be some differences in […]

  • Spring 5 source code analysis series (8) – XML based dependency injection (2)

    Time:2020-4-5

    Foreword: in the previous article, we talked about the dependency injection of populatebean method to bean attribute, and we will continue the following content in this article. 7. Beandefinitionvalueresolver resolves property values When the container performs dependency injection on the property, if it finds that the property value needs to be type converted, for example, […]

  • Tomcat source code analysis series (VIII) wrapper

    Time:2020-4-5

    PrefaceThe first article talks about the startup of Context. In Context’s startInternal method, the start method of the sub container is invoked. The sub container of Context is Wrapper, and the implementation class of Wrapper is StandardWrapper. The standardwrapper does not overload the initinternal method.1. Standardwrapper? Startinternal method /** * Start this component and implement […]

  • The basic concept of object-oriented — class and object

    Time:2020-4-5

    1. Class and object, the relationship between them is a bit like “chicken first” or “egg first”, a bit entangled.From their definition, we can see:Use object to define class, use class to generate object!Sometimes when expressing concepts, objects and classes can be generic!When designing software systems, objects do not exist,When the software system is running, […]