Explore the difference between Reflect.apply and Function.prototype.apply

As we all know, ES6 adds a global, built-in, non constructable Reflect object, and provides its next series of interceptable operation methods. One of them is Reflect.apply(). Let's explore the similarities and differences between it and Function.prototype.apply() of traditional ES5. Function signature The function signatures of the two on MDN ...

Posted on Sat, 07 Dec 2019 12:51:14 -0500 by raje

Original 001 | Get on SpringBoot Auto Injection Source Code Analysis

Preface If this is the second time you see the teacher's article, you are coveting my beauty! O() Ohaha~ Applause + Focus and Look Again, Get into the habit Nothing else means you need your peek screen This series is the SpringBoot Deep Source Private Car series, the first start! Special Car Introduction This train is for Spring Boot Auto Inje ...

Posted on Sat, 07 Dec 2019 08:40:22 -0500 by Wright

Source code analysis of jdk1.8 ReentrantReadWriteLock

ReentrantReadWriteLock ReentrantReadWriteLock is a reentrant read-write lock. Next, we will analyze how it works through the source code Important attribute /** Inner class providing readlock */ private final ReentrantReadWriteLock.ReadLock readerLock; /** Inner class providing writelock */ private final ReentrantReadWrite ...

Posted on Sat, 07 Dec 2019 06:05:17 -0500 by Chunk1978

vue-day4 of front end and mobile development

Pass value from parent component to child componentFor the definition method of component instance, note: make sure to use props attribute to define the data passed by the parent component <script> // Create Vue instance to get ViewModel var vm = new Vue({ el: '#app', data: { msg: 'This is the message in the p ...

Posted on Sat, 07 Dec 2019 05:39:17 -0500 by _spaz

Independent access to alicloud IoT platform based on open source MQTT (Node.js)

By GXIC wongxmig Finish, welcome to follow IoT developer community. 1. Preparation 1.1 register alicloud account Use personal Taobao account or cell phone number to open the account of Ali cloud, and pass the real name authentication (can be certified by Alipay). 1.2 free IoT Suite Product official website https://www.aliyun.com/product/iot 1 ...

Posted on Sat, 07 Dec 2019 03:09:30 -0500 by petitduc

SpringBoot custom YAML configuration class

In the development of spring boot applications, you can use yaml files to configure various properties and parameters, and directly map them to the properties of Java classes. For example, I have a Java class UserProperties.java package cn.buddie.test.yaml; import org.springframework.boot.context.properties.ConfigurationProperties; import ...

Posted on Sat, 07 Dec 2019 01:43:18 -0500 by turtleman8605

vue component communication

assembly The data between components is one-way bound. Parent communicates with child It is implemented by props attribute defined by subcomponent. Through props to define variables and variable types and validation methods. props simplified definition In the simplified definition, variables are defined as arrays. Vue.component("tes ...

Posted on Fri, 06 Dec 2019 23:22:27 -0500 by colmtourque

Thoroughly understand JavaScript forEach & map

background In JavaScript, we are certainly familiar with array traversal. The most common two are forEach and map. (of course, there are others such as for, for in, for of, reduce, filter, every, some,...) The reason why I have to write this a few days ago is that I made a low-level and stupid mistake when I wrote the code a few days ago, and f ...

Posted on Fri, 06 Dec 2019 21:18:07 -0500 by blindtoad

C pointer principle (47)-C application skills

The delegation model, that is, there is a boss thread, that is, the main thread, which generates the woker thread, and the boss thread and the worker thread execute concurrently.The main task of BOSS thread is to create worker thread, put the worker thread into the queue, and wake up the worker thread when there is work to be processed./ Creat ...

Posted on Fri, 06 Dec 2019 17:39:52 -0500 by maff20

Analysis of JavaScript object-oriented

What kind of things? Class: a class is an abstraction of a series of objects that have the same properties and behaviors. The "behavior" here is usually called the method of a class in a class based object-oriented language. In JavaScript, a function is also a "first-class citizen", which can be directly assigned to a variab ...

Posted on Fri, 06 Dec 2019 12:26:04 -0500 by nyy2000