Front end interview questions (JS) suggestions collection, constantly updating
Please use js to implement a stopwatch timer program
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>timer</title>
</head>
< ...
Posted by shlomikalfa on Tue, 28 Sep 2021 18:22:39 -0700
HTML5 final assignment: introduction to web design in my hometown - Puxian (6 pages) good code quality HTML+CSS+JavaScript
HTML5 final assignment: my hometown Web Design - Puxian (6 pages) code quality is good HTML+CSS+JavaScript final assignment HTML code student web course design final assignment Download Web page design and production finished products
1. Near the end of the term, you are still designing your final homework for HTML web pages. Do you feel th ...
Posted by sarmad_m_azad on Tue, 28 Sep 2021 17:46:03 -0700
HTML5 final assignment: theme design about my hometown - Chengdu, Sichuan (4 pages) HTML+CSS+JavaScript
HTML5 final assignment: about the theme design of my hometown - Chengdu, Sichuan (4 pages) HTML+CSS+JavaScript final assignment HTML code student web page course design final assignment Download Web page design and production finished products
1. Near the end of the term, you are still designing your final homework for HTML web pages. Do yo ...
Posted by mitzleah on Tue, 28 Sep 2021 17:38:26 -0700
cesium source code analyzes how a 3D scene is rendered
Seek medical advice
Do you want to know the source code of cesium?Have you ever lost your way in the huge source code?How does cesium render the scene step by step?
Go straight to the subject
1. The origin of all things - time
//Clock.js
Clock.prototype.tick = function () {
var currentSystemTime = getTimestamp();
var currentTime = Julia ...
Posted by sdlyr8 on Tue, 28 Sep 2021 01:41:45 -0700
apply, call and bind [JS]
1. apply
1.1 use of apply
apply() Method calls a function with a given value of this, and with an array (or Class array object )Parameters provided in the form of
Note: the function of the call() method is similar to that of the apply() method, except that the call() method accepts a parameter list, while the apply() method accepts ...
Posted by hrichman on Tue, 28 Sep 2021 01:33:25 -0700
Inheritance in js
ES5 implementation inheritance
Declare a Person object as the parent, and the child cPerson will inherit all the properties and methods of Person.
function Person(name, age) {
this.name = name;
this.age = age;
}
Person.prototype.getName = function() {
return this.name;
}
Constructor inheritance
With the help of the call method ...
Posted by DwarV on Mon, 27 Sep 2021 22:16:29 -0700
JavaScript advanced object oriented ES6
Essence of ES6 class
Before ES6 → realize object-oriented programming through constructor + prototype
Constructor has prototype object prototypeThere is a constructor in the prototype that points to the constructor itselfYou can add methods through prototype objectsCreating an instance object has__ proto__ The prototype points to the pro ...
Posted by prestonwinfrey on Mon, 27 Sep 2021 11:34:02 -0700
Mobile page adaptive layout -- rem
rem layout and introduce js code into the page.
(function (doc, win) {
var docEl = doc.documentElement,
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
recalc = function () {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
if (clientWidth > 1024) {
docEl.s ...
Posted by eyaly on Sun, 26 Sep 2021 20:23:39 -0700
Vue Element+Node.js development of enterprise general management background system - Vue advanced
Front: what did new Vue do
Before looking at the provide inject, you'd better know what new Vue has done (the case used is the provide inject)
Vue's true face is here. In fact, it is a class implemented by Function. We can only instantiate it through new Vue
In this_ Before init (options) is executed, in addition to extending the prototype ...
Posted by mkr on Sun, 26 Sep 2021 18:45:23 -0700
Nanny teaching! I will learn to develop babel plug-in this time!
If you have a basic knowledge of babel, it is recommended to skip the pre knowledge section and go directly to the "plug-in writing" section.
Pre knowledge
What is AST
To learn babel, the necessary knowledge is to understand AST.
What is AST?
Let's take a look at the Wikipedia explanation:
In computer science, Abstract Synta ...
Posted by mattclements on Sun, 26 Sep 2021 17:46:15 -0700