The JavaScript shorthand coding method is suitable for JavaScript shorthand skills and techniques of all stack developers. (self use, self use, self use)

1. Declare variables It is a good practice to declare variable assignment at the beginning of a function. This shorthand method can save you a lot of time and space when declaring multiple variables at the same time. Common writing let x; let y; let z = 3; Simplified writing let x, y, z=3; 2. Use ternary operators Your life becomes eas ...

Posted by Zephyris on Wed, 22 Sep 2021 09:03:21 +0200

WEB front end optimization -- HTML/CSS optimization

This series of articles is organized, recorded and expanded by the book efficient front end - Web efficient programming and optimization practice. Optimization 1: don't use JS for problems that can be solved with HTML/CSS Several cases are introduced 1.1 navigation highlight This case is not an ordinary mouse to highlight, but highlight ...

Posted by Tchelo on Mon, 20 Sep 2021 22:08:46 +0200

September 14, 2021 -- Basic JavaScript syntax

1, JavaScript overview What is JavaScript? Is an object-based and event driven client scripting language. Official concept: This is a cross platform scripting language Platform: refers to the operating environment, which generally refers to the operating system. Cross platform means that it can run in various environments. Scripting l ...

Posted by met0555 on Mon, 20 Sep 2021 05:50:23 +0200

HTML5 basic learning

1, Structure of HTML pages 1. Basic framework of HTML <html>Web page as a whole     <head>         <title>Page title</title>     </head>     <body>Theme of web page</body> </html> 2. Structure of HTML tags < tag name attribute name = attribute value > content < / tag name > 2 ...

Posted by mikeylikesyou on Sun, 19 Sep 2021 19:46:27 +0200

Notes on JS

——JS code should be written to the script tag   Control the browser to pop up a warning box   alert("first JS code"); Let the computer output a content in the page   document.write() can output a content to the body Output a content console.log() to the console; You can write js code into the onclick attrib ...

Posted by inferium on Sat, 18 Sep 2021 12:00:30 +0200

Spring boot develops large file upload service and breakpoint continuation function

Recently, I received a commercial project, which involves the problem of large file upload server and breakpoint continuation. I saw a good technical article to share with you. Recently, due to the product needs of the R & D group where the author works, it is required to support high-performance large file http upload and http breakpoint ...

Posted by NiGHTFiRE on Sat, 18 Sep 2021 11:22:42 +0200

HTML5 final assignment: personal website design - shiyike personal design studio (6 pages) HTML+CSS+JavaScript

HTML5 final assignment: personal website design - shiyike personal design studio (6 pages) HTML+CSS+JavaScript final assignment HTML code student web page course design final assignment Download Web page design and production finished products >>> ❤ Poke me ❤>>> Click to enter 300 final assignments Near the end of the term, ...

Posted by edup_pt on Fri, 17 Sep 2021 05:04:19 +0200

Six common inheritance methods of JS

Inheritance can make subclasses have various methods and properties of the parent class. Think about a few questions first: How many implementations are there for JS inheritance? Which inheritance method is used to implement the extensions keyword of ES6? 1, Several ways to implement inheritance in JS First: prototype chain inheritanc ...

Posted by gfX on Thu, 16 Sep 2021 02:19:56 +0200

JavaScript -- basic knowledge of functions

1. Concept of function Functions are also called function s and methods. A function can encapsulate a piece of code. The encapsulated function has a special function. As a complete structure (function body), a piece of internally encapsulated code will be executed if it is to be executed, or it will not be executed if it is not executed. 2. ...

Posted by christh on Wed, 15 Sep 2021 09:20:33 +0200

Solutions to common browser compatibility problems at the front end

preface: Different browsers have different kernels, so there are some differences in web page parsing among browsers. The browser kernel is mainly divided into two types: rendering engine and js engine Therefore, browser compatibility generally refers to css compatibility and js compatibility browserKernel (rendering engine)Chrome Google ...

Posted by Klojum on Tue, 14 Sep 2021 05:51:30 +0200