Tag:object

  • How to use arrays you may not know in JavaScript

    Time:2020-4-6

    After the expansion of Es5 and ES6 arrays, there are dozens of array methods. The combination of each group makes the arrays extremely powerful and can realize more complex functions with a small amount of code. Now we summarize some commonly used skills. The skill of copying array Tip 1 use array. Concat() var arr=[1,2,3]; […]

  • 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, […]

  • 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. […]

  • 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 […]

  • Just use it out, and write a promise that meets the specifications

    Time:2020-4-6

    What is promise Promise is simply a container that holds the results of an event (usually an asynchronous operation) that will end in the future. Syntactically, promise is an object from which messages for asynchronous operations can be obtained. Promise provides a unified API, and all kinds of asynchronous operations can be processed in the […]

  • Mybatis cache introduction

    Time:2020-4-6

    Mybatis cache introduction As with most persistence layer frameworks, mybatis also provides primary and secondary caching support   Level 1 cache: the local cache of the HashMap based on the perpetual cache. Its storage scope is session. After the session flush or close, all the caches in the session will be cleared. The mechanism of the […]

  • ORM

    Time:2020-4-6

    Object relational mapping (ORM) Its function is to make a mapping between relational database and object, so that we don’t need to deal with complex SQL statements when we operate the database. Net environment ORM: 1. Sqlsugar: is a lightweight MSSQL ORM with similar and easy-to-use syntax as EF in addition to the performance comparable […]

  • Parameter passing of Python functions

    Time:2020-4-6

        Preface The text and pictures of the article are from the Internet, only for learning and communication, not for any commercial purpose. The copyright belongs to the original author. If you have any questions, please contact us in time for handling. Author: wind, what to do PS: if you need Python learning materials, […]

  • One of UML, why UML?

    Time:2020-4-6

    Think in UML learning Object oriented and process oriented are two different ways to describe the world. Process oriented: the world is regarded as a process, and the world is built by interconnected small programs,It is precision.。 But there are too many factors that make up a system. It’s very difficult to take all possible […]

  • (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, […]

  • 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, […]

  • Angularjs uses promise

    Time:2020-4-5

    How to use promise in angularjs Must be inAngularJSUse inPromiseTo useAngularJSBuilt in services for$q。 We can use it first$qOfdefer()Method to create adeferredObject, and then pass thedeferredObjectpromiseProperty to change this object into apromiseObject; thisdeferredObject also provides three methods, namelyresolve(), reject(), notify()。 HTML Code: <!DOCTYPE html> <html lang=”en”> <head> <title>demo</title> <meta charset=”UTF-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1″> </head> […]