Benefits of JS optional chains

To ensure readability, this paper uses free translation instead of literal translation. To read more high-quality articles, stamp the GitHub blog, and over a hundred high-quality articles are waiting for you a year! Some of the features of JS have dramatically changed the way we code.Solutions, arrow functions, classes, and module systems that ...

Posted by greatme on Mon, 26 Aug 2019 03:15:21 +0200

Four basic methods of type judgment, jquery type method, empty object detection method and class array object are studied.

I. Preface Type judgment can sometimes be a real headache, but once you're skilled in using it, you'll feel that way. At the primary level, numbers and strings are judged. Intermediate, will judge arrays and objects. Advanced, will judge the date, regularity, error type. Advanced, will judge plainObject, empty object, window object and so on. B ...

Posted by sunil.23413 on Sat, 24 Aug 2019 17:12:51 +0200

Concurrent programming, summary

1. course 1. Two ways of process creation The first way to start the process is: from multiprocessing import Process import random import time def task(name): print(f'{name} is running') time.sleep(random.randint(1, 3)) print(f'{name} is gone') if __name__ == '__main__': # In windows environment, the opening process must be u ...

Posted by The Jackel on Sat, 24 Aug 2019 14:48:44 +0200

Message Push Protocol

Message Push Protocol Message Push Protocol is an application-layer text protocol to solve the real-time message push problem on CS/BS/APP side. It works on websockets or websockets using json data structure description. Business scenarios determin ...

Posted by treeleaf20 on Sat, 24 Aug 2019 04:20:52 +0200

Using Python to simulate microblogging login, you can still play like this.

Today, I want to make a tool for micro-blog to climb personal pages to satisfy some secrets. So first of all, do what you have to do! Simulated landing... The code is for reference: https://www.douban.com/note/201767245/ I optimized the code, refact ...

Posted by forumsudhir on Fri, 23 Aug 2019 13:11:21 +0200

Postman Use Skills 1

Background: Last video introduced several mainstream tools, among which postman is lightweight and easy to use. It is recommended that novices can learn from postman. When using any tool, we should develop some good habits, postman is the same. ...

Posted by AshrakTheWhite on Fri, 23 Aug 2019 12:02:51 +0200

Twenty-first day of python learning (bag-grabbing tool)

Knowledge Point Catalogue 1. What is grabbing bag? 2. What are the commonly used package-grabbing software? 3. How to grab app on mobile phone? 4. How to grab the article information of a technical number of Wechat? 5. How to grab relevant requests f ...

Posted by SilentQ-noob- on Thu, 22 Aug 2019 15:26:13 +0200

BOM Expansion Example of JAVA Spring MVC Bill of Material

Related concepts: BOM expansion, LIST object, JSON string, JSON object Recently, a management software is being developed, which involves the BOM management of bill of materials (also known as product structure), one of which is the development of BO ...

Posted by paulb on Thu, 22 Aug 2019 13:56:22 +0200

Vue Foundation (Data Request, Component, Attribute, etc.)

Vue Foundation (Data Request, Component, Attribute, etc.) axios&&fetch Purpose: To use data requests in frameworks Data Request Using fetch provided by native js Using third-party encapsulation libraries: axios axios can be mounte ...

Posted by methodman on Thu, 22 Aug 2019 13:50:58 +0200

SSO Single Sign-on (Client) Based on Spring Security + OAuth2

1. Origin Why do you want to take the client out and write it separately? Bloggers also refer to a lot of single sign-on on the Internet, but they are basically the same and the same. In the client's own privilege checking and single exit are not p ...

Posted by Flukey on Thu, 22 Aug 2019 13:18:49 +0200