javascript | Function Base

🌞Function declaration Create a function using a function declaration. The function keyword appears first, followed by the function name, followed by a list of parameters between parentheses (comma-separated, empty in the above example), and finally the code between curly brackets (i.e.'function body'). function showMessage() { alert( 'H ...

Posted by davidx714 on Wed, 01 Sep 2021 09:19:22 -0700

web Front End Case-Developing 3D Dragging Photo Wall

This code is 136 lines, written in css3 and javascript. Now the albums on the network are mostly tiled. If there are many photos, they look very tired. Of course, this is my personal point of view, so this time I made a 3D album dragging effect, which looks beautiful and not tired to watch. Knowledge points: CSS33D effect, CSS3 excessi ...

Posted by navarre on Thu, 16 Jul 2020 08:51:27 -0700

express Learning (3) - cookie s and session s

express Learning (3) - cookie s and session s Cookies exist in the browser and can only store up to 4K of data, which is not safe Session exists in the server and cannot be independent (read cookie s before session), which is more secure cookie tool Send cookie s: Write the basics first: const express = require('express'); var server=expre ...

Posted by Jedi Legend on Thu, 16 Jul 2020 08:18:30 -0700

Beginner vue+webpack (front end of formal pit entry)1

1. Install firstNode.jsEnvironment Official Website Address https://nodejs.org/en/ Text editor chooses sublime text3 (vs is too big) 2. Establishing projects 2.1 Create a new project folder, code-x code number x plan, and put it on the desktop 2.2 Initialization cd c:\user\duab\desktop\code-x npm install -g vue-cli //Global Installation vue-c ...

Posted by BinaryDragon on Mon, 13 Jul 2020 08:02:55 -0700

Beginner vue+webpack (front end of formal pit entry)1

1. Install firstNode.jsEnvironment Official Website Address https://nodejs.org/en/ Text editor chooses sublime text3 (vs is too big) 2. Establishing projects 2.1 Create a new project folder, code-x code number x plan, and put it on the desktop 2.2 Initialization cd c:\user\duab\desktop\code-x npm install -g vue-cli //Global Installation vue-c ...

Posted by skehoe on Mon, 13 Jul 2020 08:03:31 -0700

Experience with async/await

Running Environment This method is supported above node7 This feature is supported above chrome55 and is typically used in node development Introduction to async Async is actually the syntax sugar of promise, a method marked by async that returns a promise object async is defined as follows: async function name([param[, param[, ... par ...

Posted by Tryweryn on Sun, 12 Jul 2020 08:13:59 -0700

The choice of Hybrid APP hybrid development mode (7: full version of JSBridge)

preface Reference sources This paper refers to the following sources Design ideas of Hybrid APP architecture marcuswestin/WebViewJavascriptBridge Wedge This paper introduces the complete implementation of JSBridge, including JS part, Android native part and iOS native part JS implementation part explain This is a JSbridge implementati ...

Posted by benyboi on Thu, 09 Jul 2020 09:13:20 -0700

Front end development -- HTML

1, Introduction to front end development As a programmer, if you want to develop a website, its essence is to receive the browser's request and return the data to the socket server, and the returned data format should conform to the rules recognized by the browser. The purpose of the front-end development course is to take you to learn all th ...

Posted by syth04 on Mon, 29 Jun 2020 19:32:41 -0700

Implementation of call,apply,bind and new

call First of all, let's look at the usage of call (a call) call principle: let the previous function execute and change the direction of this. If the first parameter is not passed or is null or undefined, then this is window. If passed, this is the first parameter function fn1(n,m) { console.log('I am fn1',n,m);//I'm fn1 1 2 } ...

Posted by fdost on Mon, 29 Jun 2020 01:20:31 -0700

Chapter 1 JavaScript foundation [cloud smart link]

Chapter 1 JavaScript Basics 1. What is JavaScript? HTML+CSS completes the static page display, but to complete better and more complex user interaction and data interaction and display, you need to use JavaScript. JavaScript is an object-based and event driven scripting language with security performance 2. Features of JavaScript a. You can add ...

Posted by glitch003 on Sat, 27 Jun 2020 22:26:06 -0700