Understanding of JavaScript "this"

Text explanation: 1, Understanding of this:This: it means "this". It's a pronoun. The meaning of pronoun is determined by the scene or situation. You, me, him, this, that, are pronouns. When someone says, "I'm eating", then who is this "I", we must see who said this sentence, who said it, who I am, that is, &quo ...

Posted by jpr on Sat, 02 May 2020 12:58:41 +0200

Using input input box to achieve nice check box effect (css+jq)

After the completion of the design, it is really a barrier and long QAQ. When using a check box, because it is too ugly to abandon the check box, I made one myself. There is no picture in it, which is implemented by css and jQuery. The final effect can be seen directly without much nonsense: The html element is design ...

Posted by daftdog on Fri, 01 May 2020 08:33:11 +0200

Picture labeling component - jquery.picsign - the first open source component encapsulated by itself

After a few days of trying and learning, I have encapsulated my first js component, there are many shortcomings, please give me some advice. Because of some business needs, we need to add some labels to the pictures, find some on-line but can not meet the needs, and there are some bug s, too many pits So I have the idea of encapsulating one by ...

Posted by JohnMC on Wed, 29 Apr 2020 19:44:09 +0200

Asp.Net Core 3.1 learning 4. JWT based token verification and Swagger use in Web Api

1. Initial JWT 1.1 JWT principle JWT (JSON Web Token) is the most popular cross domain authentication solution at present. Its advantage lies in that the server does not need to store tokens for distributed development, and provides data for the APP for the project of front-end and back-end separation. The items of the token generated by log ...

Posted by presence on Tue, 28 Apr 2020 07:06:22 +0200

Note: build a simple file search system based on Springboot+Lucene

Different types of files are stored in the file storage system. The background extracts the file name and content through the program. Lucene is used to index the file name and content. The front end provides a query interface for the user. After the user submits the query keywords, the index library is retrieved and the matching documents are ...

Posted by txmedic03 on Sun, 19 Apr 2020 16:23:54 +0200

Angular vs React vs Vue vs UISYS event binding comparison (novice must see)

1. Start from zero Event binding is the second lesson for beginners in web development, and learning event binding represents a new lesson in which you will challenge interaction.Let's first look at what native html + JavaScript does: Native mode: <div> <button onclick="greet()">Greet</button> </div> <script> ...

Posted by Lodius2000 on Fri, 17 Apr 2020 04:30:03 +0200

Using Baidu map to realize map grid

Recently, baidu map will be used to realize the function of building visualization, so the most basic function is to realize the division of building in different regions after gridding the map; 1. Go to the open platform of Baidu map to apply for the secret key. Here I post my secret key; ak=A3CklGvnFOjkAzKzay2dySgfdig0GKz4 2. Create a new sim ...

Posted by nomad9 on Wed, 15 Apr 2020 20:10:36 +0200

Python3 Standard Library: json JavaScript Object Notation

1. json JavaScript object notation The JSON module provides an API similar to pickle, which can be represented linearly and is called JavaScript Object Notation (JSON).Unlike pickle, JSON has one advantage: it has multiple language implementations (especially JavaScript).JSON is most widely used for communication between Web servers and clients ...

Posted by igebert on Wed, 15 Apr 2020 04:17:42 +0200

The use of ref in React

Example: get the distance from the button element to the top of the page ref is written on html elements import React,{Component,Fragment} from 'react'; import Child from './Child'; class Counter extends Component{ constructor(props){ super(props); this.addCount=this.addCount.bind(this); this.state={ ...

Posted by Aebx on Tue, 14 Apr 2020 16:01:49 +0200

Anonymous functions, immediate execution functions and closures in JavaScript

Anonymous functions have no function name and cannot be used alone; Immediate execution function is implemented based on anonymous function, and there is no function name. It will be executed immediately after definition; A closure is a function that has access to variables in the scope of another function. Anonymous functions and immediate exe ...

Posted by Mortier on Tue, 14 Apr 2020 12:09:10 +0200