Tag:create object

  • Spring learning record


    1. Two cores: AOP aspect oriented programming: extension function is not implemented by modifying source code; IOC: control reversal; Firstly, the underlying implementation principle of IOC uses technologies: (1) XML configuration file (2) Dom4j parsing XML (3) engineering design pattern (4) reflection Secondly, there are three methods of bean instantiation, which mainly use calling the […]

  • Summer self-study day 08 | JUnit, reflection, annotation (II)


    Series articles: Summer self-study day 07 | JUnit, reflection, annotation (I) Summer self-study day 08 | JUnit, reflection, annotation (II) Class object function to obtain member variable instances Class p = Person.class; Class object function to obtain the instance of constructor variable Constructors are used to create objects Class personClass = Person.class; The related methods […]

  • Spring learning record (II)


    1. Principle of spring integrated web project Underlying technology: ServletContext object; monitor; Implementation principle: when the server starts, create a ServletContext object;When creating an object, you can use the listener to listen to when to create a ServletContext object;When listening to the creation of this object, the server will load the spring configuration file and […]

  • Angularjs learning notes – Chapter 2 – functions


    1.angular.copy angular.copy(source, [destination]); If no destination is supplied, a copy of the object or array is created If a destination is provided, all of its elements (for arrays) or properties (for objects) are deleted and then all elements/properties from the source are copied to it. If source is not an object or array (inc. null […]

  • Golang executes the exec command


    Create object: cmd, err := exec.Command(“echo”, “show me”)   Execute command: cmd.Run()  // Run blocks the process until the command execution ends CMD. Start() / / start non blocking execution CMD. Wait() / / wait blocks the process and waits for the end of command execution. It is used with star   Set output: var […]

  • [front end interview] if JavaScript prototype is used to implement inheritance


    By indermohan singTranslator: XiaozhiSource: Blog Like again, form a habit this paperGitHubhttps://github.com/qq44924588… I’ve collected more categories of previous highly praised articles and sorted out a lot of my documents and tutorial materials. Welcome star and perfect, you can refer to the interview site review, I hope we have something together. Recently, a Vue component is […]

  • Springboot learning summary 01


    The startup process of springboot 1) The loading class based on configuration loads the class, and the bottom layer loads the class from disk to cache through io2) Find the annotation defined in spring to describe the bean, and create a map at the bottom. The name of the bean is used as the key, […]

  • Design pattern — object pool pattern


    Today, let’s introduce the object pool pattern. This design pattern is not used as frequently as factory pattern in daily work, but it provides a new idea of object use and management, which is worth learning. Since the pool is mentioned, it is a collection of a certain class or a kind of things, such […]

  • Will JS and JQ back-end development, how happy to turn the front-end: Part II – Section I: ES6 – object-oriented – play OOP flower – constructor and prototype


    A series of articles: How to develop the front end of JSQ Will JS and JQ back-end development, how happy to turn the front-end: Part II – Section I: ES6 – object-oriented – play OOP flower – constructor and prototype Will JS and JQ back-end development, how happy to turn the front-end: Part II – […]

  • Java reflection


    reflex concept Reflection is one of the characteristics of Java programming language. It allows running Java programs to check themselves, or “self audit”, or “self reflection”. Reflection is so powerful that it can even directly manipulate the private properties of a program. Reflection is like a mirror. It can get all the information of a […]

  • The context of component communication


    It’s difficult to explain the concept of context, and many functions are not commonly used. Let’s briefly explain the most commonly used methods In react, cross component communication can pass data layer by layer through props or create objects in context= React.createContext (‘name ‘) can be accessed through subscription Upper code~~~ //Create context object const […]

  • Using new object to create objects


    Var obj = new object(); / / an empty object is createdobj.uname = ‘zhangsanfeng’;obj.name =18; / / the literal way to create an object is different. Here you need to use = assignment to add properties and methodsobj.sex =’Nan’; / / attributes and methods end withobj.sayHi = function() { console.log(‘hi’);} console.log(obj.uname);  console.log(obj[‘age’]);