Tag:middleware

  • Basic concepts of Vue

    Time:2021-1-19

    The main aspects of the front end logic judge loop event Browser event: window document DOM event: add, delete, traverse, modify node element content view html css signal communication xhr Ajax axios Vue Separation principle of SOC attention Pay attention to the view layer: show it to the user and refresh the data given by […]

  • Summary of recent use of gin

    Time:2021-1-17

    Recently, a new project is developed by using gin. Some problems are encountered in the process. To sum up, as a note, I hope it can help you. Cross domain problems Middleware: func Cors() gin.HandlerFunc { return func(c *gin.Context) { //Here you can use * or the domain name you specify c.Header(“Access-Control-Allow-Origin”, “*”) //Allow header […]

  • Thinkphp5 – using think API to deploy JWT

    Time:2021-1-15

    Because the next project will use TP5 to develop a small program, so we use the TP framework. Because small program development needs the background to write API interface, we check whether there are related dependencies on the Internet. Here we recommend the think API extension tool, because we mainly want to use the JWT […]

  • Build from scratch Node.js Enterprise web server (XV): summary and Prospect

    Time:2021-1-14

    summary By the end of this chapter, “building from scratch” Node.js The topic of “enterprise web server” has a total of 16 chapters, and the content has been updated Build a Node.js Enterprise web server is not difficult, but must do a few key things The key points that must be done well are the […]

  • Detailed explanation of Middleware in Redux learning

    Time:2021-1-13

    What is middleware Middleware, translated as middleware, is a very abstract noun. According to my understanding, “middle” is an adjective, and “piece” should be a noun. So let’s focus on itmiddleThis word, middle, is on the top, middle? In fact, it isInsert some other code in the middle of your normal business code, specificIt can […]

  • The advanced way of front end paper

    Time:2021-1-11

    Looking at the source code for the first time, it’s not as hard as you think. The main reason is that the source code of Redux is relatively small and easy to understand. After reading it, I feel that I have a deeper understanding of the idea of Redux and the concept of functional programming. […]

  • 24. Springboot integrates ActiveMQ

    Time:2021-1-10

    Message queue middleware is an important component in distributed system, which mainly solves the problems of application coupling, asynchronous message, traffic cutting and so on. To achieve high performance, high availability, scalable and ultimately consistent architecture; it is an indispensable middleware for large-scale distributed systems. At present, ActiveMQ, rabbitmq, Kafka, rocketmq, metamq and so on […]

  • Introduction of wing payment in sharding sphere project

    Time:2021-1-9

    Tianyi e-commerce Co., Ltd. (hereinafter referred to as “Yi payment”) is a wholly-owned subsidiary of China Telecom Co., Ltd. as the only Internet financial platform company under China Telecom, it is the first payment company of telecom operators in China, a third-party payment institution approved by the people’s Bank of China, and a subsidiary of […]

  • React — Redux

    Time:2021-1-8

    1、 How to use Redux The use of Linux is similar to that of usereducer (please seeRe learning react — context / reducer(one article) // store.ts import { createStore, applyMiddleware, combineReducers } from ‘redux’; Import logger from ‘Redux logger’; // Middleware Import chunk from ‘Redux chunk’; // Middleware export interface IState { name: string, age: […]

  • redux-thunk

    Time:2021-1-7

    1、 What is Redux thunk We know that when an asynchronous call returns to the front end is out of control. For Redux, a strict data stream, how can it be asynchronous?The basic idea of Redux thunk is to encapsulate asynchronous requests through functions, that is, to return a function in actioncreator and call it […]

  • Redux source code interpretation

    Time:2021-1-6

    1、 What is the function of Redux? The state is put in a state and managed by the store The store is created according to the “shape” of the reducer. The function of reducer is to output a new state after receiving the action and update the state on the store correspondingly. According to the […]

  • Several problems after reading Redux source code

    Time:2021-1-4

    1. Why are there both currentlisteners and nextlisteners in the createstore? Students who have read the source code should understand that the createstore function saves not only the current subscribers but also the nextlisteners in order to save the subscribers of the store. There is an internal function in the createstoreensureCanMutateNextListeners: function ensureCanMutateNextListeners() { if […]