Tag:javascript

  • JavaScript array sorting applet implementation analysis

    Time:2020-7-11

    This article mainly introduces the JavaScript array sorting small program to achieve parsing, the article through the example code introduced in very detail, for everyone’s study or work has a certain reference learning value, need friends can refer to The sort() function of JavaScript array is sorted by string size, which can’t sort a group […]

  • Design mode 8 ——– filter mode

    Time:2020-7-1

    Filter mode Filter pattern or criteria pattern is a design pattern that allows developers to filter a set of objects using different standards and connect them in a decoupled way through logical operations. This type of design pattern belongs to structural pattern, which combines multiple standards to obtain a single standard. realization We will create […]

  • OAuth2

    Time:2020-6-30

    Why need oaut2? Suppose there is a “cloud notes” product, which provides “cloud note service” and “cloud photo album service”. At this time, users need to access these “resources” (notes, pictures) on different devices (PC, Android, iPhone, TV, watch) So how can users access their own resources? At this time, the traditional way is to […]

  • The third course of MySQL introduction “data addition, deletion and modification”

    Time:2020-6-25

    In my GitHub, please subscribe. Before that, I have learned the first lesson of MySQL introduction “create table, change table, delete table” and the second lesson of MySQL introduction “data type”. Today, I will continue to learn how to add, modify and delete table data. StillstudentTable for example. Execute the following SQL to create a […]

  • Today, the night team gathered by the big guys is officially established!

    Time:2020-6-25

    Today’s article is to tell you that many powerful developers in the industry have set up a team to serve the majority of developers. Now, you may have the following questions: Why team up? What will this team bring to developers? Who are the team members? OK, let’s take 3 minutes to get to know […]

  • Analysis of callback usage of JavaScript callback function

    Time:2020-6-18

    This article mainly introduces the usage analysis of callback function in JavaScript. The example code is introduced in detail in this article, which has a certain reference value for your study or work. You can refer to the following for your friends The use of JavaScript callback function is very common. It refers to the […]

  • JavaScript traversal array method code instance

    Time:2020-6-17

    This article mainly introduces the method code example of JavaScript traversing array. The example code is introduced in detail in this article, which has certain reference learning value for your study or work. You can refer to the following for friends who need it For loop let arr=[“A”,”B”,”C”,”D”,”E”,”F”]; for(let i=0;i<arr.length;i++){ console.log(arr[i]); } for…of Iterate through […]

  • React + koa + mongodb + docker development environment

    Time:2020-6-15

    preface This blog post is still rightmulti-spa-webpack-cliTo expand and improve. integratemongoose。 integrateDockerDevelopment environment. multi-spa-webpack-cliIt has been published to NPM, and only needs to be installed in node environment. npm install multi-spa-webpack-cli -g The operation steps are as follows: #1. Initialization project multi-spa-webpack-cli init spa-project #2. Enter the file directory cd spa-project #Docker not used #3. […]

  • How to realize code highlighting of regular expression JavaScript

    Time:2020-6-15

    Today, I want to change the highlight color of JS, and I’ve been holding this regular expression all afternoon.The thing that the elder grows is a regular expression. Don’t be scared when you see it. Copy codeThe code is as follows: /(\/\/.*|\/\*[\S\s]+?\*\/)|(([“‘])(?:\\.|[^\\\n])*?\3)|\b(break|continue|do|for|in|function|if|else|return|switch|this|throw|try|catch|finally|var|while|with|case|new|typeof|instance|delete|void)\b|\b(Object|Array|String|Number|Boolean|Function|RegExp|Date|Math|window|document|navigator|location)\b|\b(true|false)\b|\b(null|undefined|NaN)\b|(?:[^\W\d]|\$)[\$\w]*|(0[xX][0-9a-fA-F]+|\d+(?:\.\d+)?(?:[eE]\d+)?)|(?:[^\)\]\}]|^)(\/(?!\*)(?:\\.|[^\\\/\n])+?\/[gim]*)|[\S\s]/g Now, we can analyze it slowly. If you look at this regular expression […]

  • An example analysis of JavaScript event bubbling mechanism

    Time:2020-6-14

    This article mainly introduces the principle of JavaScript event bubbling mechanism instance analysis. The example code introduced in this article is very detailed, which has a certain reference learning value for everyone’s study or work. You can refer to the following for your friends DOM event flow has three stages: event capture stage, target stage […]

  • Using kubernetes to deploy a notepad project

    Time:2020-6-8

    Kubernetes, or k8s for short, is an open source project released by Google in 2014. What problems did kubernetes solve? A real production environment application will contain multiple containers, which are likely to be deployed across multiple server hosts. Kubernetes provides the ability to choreograph and manage containers for large-scale deployment of those workloads. Kubernetes […]

  • How to connect night God simulator and hbuilder

    Time:2020-6-7

    Recently, our office is doing mobile development, which requires real machine debugging. Then several of our front-end users like the hbuilder editor. They just like it, for no reason. But our little sister of art industry always makes mistakes when she configures the night God simulator to connect with hbuilder, so I just need to […]