java learning notes day17 advanced JavaScript

Today's content: 1. JavaScript: 1. ECMAScript: 2. BOM: 3. DOM: 1. Event DOM simple learning: to meet case requirements *Function: control the content of html document *Get page label (Element) object: element *document.getElementById("id value"): get the element object through ...

Posted by MishieMoo on Tue, 18 Feb 2020 04:54:06 -0800

Front end learning from entry to advanced record 23 (webapi)

Learning objectives Master the concept of API and Web API Master the common way of calling API provided by browser Can develop common page interaction functions through API Be able to use search engine to solve problems 1. Web API Introduction to Web API The concept of API API (Application Prog ...

Posted by lajocar on Tue, 11 Feb 2020 03:38:03 -0800

JAVAEE takes a closer look at JavaWeb 11 - JavaScript Advanced

Content: 1. JavaScript: 1. ECMAScript: 2. BOM: 3. DOM: 1. Event DOM Simple Learning: To meet case requirements *Function: Control the content of html documents *Get page label (element) object: Element * document.getElementById("id value"): Get the element object from the eleme ...

Posted by anybody99 on Mon, 10 Feb 2020 18:10:52 -0800

JavaScript foundation 1 (overview, data types)

JavaScript language foundation Summary Brief introduction: Javascript (abbreviated as "JS") is famous as a scripting language for developing Web pages. It is the most popular scripting language in the world, but it is also used in many non browser environments. JavaScript is based on prot ...

Posted by sbourdon on Tue, 04 Feb 2020 08:08:30 -0800

Block level scope in JS, the difference among var, let and const

First, ECMAScript and JavaScript relationships: ECMAScript is an internationally adopted standardized scripting language. JavaScript is composed of ECMAScript, DOM and BOM. It can be simply understood as: ECMAScript is the language specification of JavaScript, and JavaScript is the implementation and extension of ECMAScript. ...

Posted by adeelzia on Thu, 09 Jan 2020 09:40:43 -0800

What techniques can be used to define classes in JavaScript, and what are their trade-offs?

I like to use OOP in large projects that I'm currently working on. I need to create several classes in JavaScript, but if I remember correctly, there are at least two ways to do this. What is grammar and why is it used in this way? I want to avoid using third-party libraries - at least in the first place. In search of other answers, I foun ...

Posted by maGGot_H on Tue, 24 Dec 2019 03:54:44 -0800

Basic introduction module of TypeScript (2)

Reprint Basic introduction module of TypeScript (2) Generate module code According to the module target specified during compilation, the compiler will generate appropriate code for Node.js (CommonJS), require.js (AMD), UMD, SystemJS or ECMAScript 2015 native module (ES6) module loading system. For more information about the define, require, ...

Posted by coffeehead on Sat, 21 Dec 2019 12:44:41 -0800

JavaScript Syntax Basics - Statements and Expressions

about This article was started by the WowBar team at GitHubAuthor: yvongyang Catalog Expression Sentence Expression statement compare Reference resources Statements and Expressions The main difference between expressions and statements in JavaScript is that a statement executes an action and an expression produces a value.Meaning is that an ...

Posted by veroaero on Sun, 15 Dec 2019 10:27:13 -0800

Solutions to asynchronous programming -- promise and await

What is promise? Promise, in short, is a container that holds the results of an event (usually an asynchronous operation) that will end in the future. Syntactically, promise is an object from which messages for asynchronous operations can be obtained. Promise provides a unified API, and all kinds of asynchronous operations can be processed in t ...

Posted by colemanm on Wed, 11 Dec 2019 20:03:15 -0800

How to randomize (randomly play) JavaScript arrays?

I have an array like this: var arr1 = ["a", "b", "c", "d"]; How to play randomly? #1 building A person can (or should) use it as an Array prototype: From ChristopheD: Array.prototype.shuffle = function() { var i = this.length, j, temp; if ( i == 0 ) return this; while ( --i ) { j = Math.floor( Math.random() * ( i + 1 ...

Posted by jinwu on Wed, 11 Dec 2019 12:46:31 -0800