Implementation of authentication based on jwt

cause http is a stateless protocol. You need to know which user it is, so you need an authentication mechanism. With the development of technology and the popularity of distributed web applications, the cost of managing user login status through session is becoming higher and higher. Therefore, it has gradually developed into a token method to ...

Posted by dougmcc1 on Fri, 29 Apr 2022 23:18:53 +0300

Vue basic syntax

1, Template syntax 1. Interpolation text  {{msg}} Example: <html> <head> <meta charset="utf-8" /> <title></title> <!-- Mode I manual mode --> <!-- <script src="js/vue.js" type="text/javascript"></script> --> <!-- Mode 2 CDN --> <!-- Development environment version ...

Posted by MaDSEGA on Fri, 29 Apr 2022 23:06:33 +0300

C #: develop multi tab browser with CefSharp (Chromium)

1. Development scenario When using the webbrowser control of winform, we should consider the version of IE and the rendering of HTML5. The use experience is very bad. After all, webbrowser is just a wrapper of IE browser. Therefore, consider using the open source version of chromium to develop a browser control that can use a variety of appli ...

Posted by farkewie on Fri, 29 Apr 2022 22:57:44 +0300

Three ways to modify this point

call function. Call (who this points to, parameter 1, parameter 2...) calls the function and modifies this point in the function; Execute the call method of the function, which will call the function and modify the this point in the function;The 0th parameter in call represents who this in the function refers to when the current function ...

Posted by simply07 on Fri, 29 Apr 2022 19:34:13 +0300

Prototype and prototype chain

preface I've seen a lot of in-depth understanding of the prototype chain series. Generally, I understand a lot, but it's not thorough enough! The following is a personal summary and understanding only. First seen nouns First of all, we must understand these words: Function, constructor, function prototype (instance prototype), instance, instanc ...

Posted by Chief on Fri, 29 Apr 2022 17:57:37 +0300

Real-time face recognition and object recognition based on nodejs on Raspberry Pi 4B using tfjs-node

start I had this idea a few years ago. I wanted to be an assistant that can recognize faces and objects, and can recognize commands through simple dialogues. Similar to the offline enhanced version of Xiao Ai, I can monitor my cabin by the way. However, I was too busy at the end of the year and didn’t have the time and energy to toss. I ...

Posted by ludjer on Fri, 29 Apr 2022 15:52:37 +0300

js array & common methods of string

Common methods of array includes() Used to judge whether there is an element in the array and return a Boolean value const arr = [1, 2, 3, 4, 5] console.log(arr.includes(4)) // true forEach() The most commonly used method of traversing an array. This method will not change the original array and has no return value. const arr = [1, 2, 3, 4 ...

Posted by Renegade85 on Fri, 29 Apr 2022 12:41:59 +0300

js primary foundation

Js elementary foundation typeof can determine which types Syntax of typeof typeof is an operator, there are two ways to use it: typeof (expression) and typeof variable name, the first is to operate on expressions, and the second is to operate on variables. return value of typeof The return type of the typeof operator is a string, and the ...

Posted by phpjaco on Fri, 29 Apr 2022 12:03:01 +0300

Summary of common git commands

Sort out the git command to facilitate your own view Generate SSH ssh-keygen -t ras -C "email@xxx" Set user name git config --global user.name "cc" git config --global user.email "cc@xx" New code warehouse Create a Git code base in the current directory git init Create a new directory and initialize it as a Git code base git init ...

Posted by lalomarquez on Fri, 29 Apr 2022 11:22:20 +0300

Several methods of js inheritance and es6 inheritance

**Several methods of js inheritance and es6 inheritance ** **1, Prototype chain relay** ** 1. Basic thought** Using the prototype chain to realize inheritance, an instance of the superclass is used as the prototype of the subclass **2. Specific implementation** Copy code 1 function F() {} 2 3 //Prototype attribute, prototype method ...

Posted by gregtel on Fri, 29 Apr 2022 10:30:22 +0300