Component fundamentals in Vue

How to create components // 1.1 use Vue.extend to create a global Vue component var com1 = Vue.extend({ // Through the template attribute, the HTML structure to be displayed by the component is specified template:'<h3>This is used. Vue.extend Components created ...

Posted by JimStrosky on Sat, 18 Jan 2020 09:20:35 +0100

Two ways to get configuration from apollo client

In general, use the listener ConfigChangeListener that implements apollo to get the configuration in real time through onChange method. However, if the timeliness requirements for configuration changes are not high, and you just want to use the new configuration when using the configuration, you can ge ...

Posted by Nexus10 on Fri, 17 Jan 2020 10:40:57 +0100

Spring IoC container details

Dependent processing The process of container solving dependency ApplicationContext is created and initialized through configuration metadata, which describes all bean s. Configuration metadata can be XML, java code and annotation For each bean, its dependency is expressed in the form of an attribute ...

Posted by Blaze(!) on Thu, 16 Jan 2020 11:23:43 +0100

ch06 object oriented features

Article directory Object oriented features Understanding object-oriented concept Classes and objects Polymorphism inherit Create classes, properties, and actions Class structure Constructor Destructor Class instantiation Use class properties Call class action Using private and public keywords to ...

Posted by himnbandit on Wed, 15 Jan 2020 10:27:27 +0100

Vulkan pit filling learning Day11 - intrinsic function

Vulkan's inherent functions Vulkan's inherent functionality, early graphics API s provided default state in many stages of a graphics rendering pipeline. In Vulkan, from the size of the viewport to the color mixing function, you need to do everything by yourself. In this chapter we will fill in all th ...

Posted by stringman on Mon, 13 Jan 2020 15:04:58 +0100

Compatibility finishing for ios and Android front end

1. Date Compatibility Under Android Date.parse(new Date('2018-03-30 12:00:00')) Under ios system Date.parse(new Date('2018-03-30 12:00:00')) Conversion is not possible. Solution (compatibility writing) Date.parse(new Date('2018/03/30 12:00:00')) || Date.parse(new Date('2018-03-30 12:00:00')) Encapsul ...

Posted by ChrisDarl on Mon, 13 Jan 2020 03:18:34 +0100

Learning code: DI dependency injection of hand written Spring

I wrote the IOC implementation of spring before, but now I write the implementation of DI dependency injection Paste class diagram Because junit package will be used when DI is implemented for testing, import dependency in pom.xml <!--SpringDI--> <dependency> &lt ...

Posted by Kingskin on Sat, 11 Jan 2020 18:06:09 +0100

android Google map's icon page turning effect

Recently, I was looking at the hencoder custom view series of the throwing line. There is an icon turning the page and rotating the effect is cool. After thinking about it and seeing the thought of a great God, I finally made it. (GIF recorded a bit of card, the real effect can be run and viewed by yourself) thinking The w ...

Posted by stickman373 on Sat, 11 Jan 2020 18:03:09 +0100

Understanding of metaclasses in python

1. Class is also an object In most programming languages, a class is a set of code snippets that describe how to generate an object. This is still true in Python: >>> class ObjectCreator(object): ... pass ... >>> my_object = ObjectCreator() >>> print my_object <__main__.ObjectCreator object at 0x8974f2c> ...

Posted by Varma69 on Tue, 07 Jan 2020 15:25:06 +0100

Go Network File Transfer

Process analysis With the help of TCP, the basic idea is as follows: The sender (client) sends the file name to the server, and the server saves the file name. The receiver (server) returns a message ok to the client to confirm that the file name is saved successfully. After receiving the message, the sender (client) begins to send the file da ...

Posted by evdawg80 on Tue, 07 Jan 2020 09:53:27 +0100