Getting started with react - creating components (2) stateless function method

It's about inheritance React.Component Create the react component. The React component can also be constructed by stateless function. give an example <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>React Components</title> </head> <body> <!-- ...

Posted on Sat, 30 May 2020 08:30:02 -0700 by bhogg

In depth interpretation of KafkaListener annotation of spring Kafka

brief introduction At present, Kafka is mainly used as a distributed publish subscribe message system, and it is also one of the most popular message queuing systems. Therefore, more and more frameworks integrate Kafka, such as spring Kafka, which will be mentioned in this article. Since Kafka is a message publishing and subscription system, ...

Posted on Sat, 30 May 2020 01:00:05 -0700 by foyer

An article gives you a quick understanding of the box model [classic case]

Today, I'd like to take you to a quick understanding of the box model and go directly to the code: <!doctype html><html>    <head>        <meta charset="utf-8" />        <title>css Box</title>        <meta name="keywords" content="key word,key word" />        <meta name="description" content="" ...

Posted on Thu, 28 May 2020 03:07:37 -0700 by kalivos

Details of stacked to grouped bars in D3.js

Stacked-to-Grouped Bars Talking about stacked histogram and clustered graph In the example of D3.js official website, switch the two kinds of histogram together. See the figure below: Stacked histogram Cluster graph Next, the implementation code of these two kinds of histogram is explained in detail ...

Posted on Wed, 27 May 2020 08:24:00 -0700 by I Am Chris

php single file upload and multi file upload

PHP file upload configuration php.ini Files and predefined variables$_ FILES 1: Configuration php.ini file To achieve the upload function smoothly, the first thing to do is to php.ini Open file upload and make reasonable settings for some of the parameters. Find the File Upioads item, and you can see that there are three attributes as follow ...

Posted on Tue, 26 May 2020 23:57:49 -0700 by psunshine

Basic commands for 02-neo4j

1. Insert nodes.Insert a node of Person category that has an attribute name with an attribute value of Andres CREATE (n:Person {name : 'Liang Chuan Chuan'}); CREATE (n:Person {name : 'Quiet and quiet'}); CREATE (n:Person {name : 'Nicholas Tse',relation : "oldest maternal uncle"}); CREATE (n:Person {name : 'Thank you 2',relation : "2 Uncle" ...

Posted on Sun, 24 May 2020 09:43:40 -0700 by duankr

Mybatis Powerful Result Set Mapper resultMap

1. Preface The resultMap element is the most important and powerful element in MyBatis.It frees you from 90% of JDBC ResultSets data extraction code and allows you to perform operations that JDBC does not support in some cases.In fact, when writing mapping code for complex statements such as connections, a resultMap can replace thousands of l ...

Posted on Sat, 23 May 2020 17:54:21 -0700 by Julian Pedley

Submission of php form form

php forms inserting forms into Web pages Insert the form in the normal WEB page as follows: a relatively complete form will be created here to show all the elements and attributes in < form >. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>index</title> </head> < ...

Posted on Fri, 22 May 2020 01:05:11 -0700 by roba59

13 route selection principles of BGP

 after the BGP router notifies the neighbor of the route, each BGP neighbor will carry out route optimization. There are three situations of route selection① The route is the only route to the destination, which is directly optimized② For multiple routes to the same destination, the highest priority is preferred③ For multiple routes th ...

Posted on Wed, 20 May 2020 03:21:55 -0700 by promovi

Vue component communication values (parent-child component communication / brother component communication / cross level communication)

First: Props / $emit Father child Props // Parent component<template> <div id="app"> <users v-bind:users="users"></users>//The former is easy to call for subcomponents, while the latter needs to pass data names </div> </template> <script> import Users from "./components/Users" export default { ...

Posted on Wed, 20 May 2020 02:52:06 -0700 by oc1000