How to draw a cube with CSS3?

Preface Writing recently< Animation Point Series > The article was shared in the last issue. Hands teach you how to draw a sports car. This issue brings you a three-dimensional 3d magic cube combined with CSS3, which combines js to let you turn as you like. Here is @ IT Pingtou Coalition I'm the chief filling officer. South of Jiangsu (S ...

Posted by shoxlx on Tue, 14 May 2019 23:45:41 +0200

Depth-first traversal (DFS) and breadth-first traversal (BFS) of JS algorithm

background When developing a page, we sometimes encounter the need to traverse a dom node in the page to find the target dom node. Our normal practice is to use the selector document. getElementsById (), document.getElementsByName() or document.getElementsByTagName(), but in this article, we look for the dom node from an algorithmic point of vi ...

Posted by pontiac007 on Tue, 14 May 2019 21:53:03 +0200

ng-book Notes: Dependency Injection

Dependency injection is a system that enables one part of a program to access another part and control its behavior through configuration. "Injection" can be understood as an alternative to the "new" operator, which no longer requires the use of the "new" operator provided by the programming language and relies on ...

Posted by limao on Tue, 14 May 2019 15:50:08 +0200

Constructor, prototype, prototype chain, prototype chain inheritance in JS

JavaScript is a prototype-based interpretive scripting language, which runs on the browser side. At the same time, JS is an object-oriented programming language. Everything in JS can be regarded as objects, strings, numbers, functions and so on. First, what are the ways to create objects? 1. Create an object literal: var student ...

Posted by bmyster on Tue, 14 May 2019 13:32:08 +0200

Webpack 4.0 introductory learning notes

Initialization project Create project mkdir webpack4-democd webpack4-demo npm init -y install npm install webpack --save-dev Install the specified version npm install --save-dev webpack@<version> webpack 4 + version, you also need to install webpack-cli npm install webpack-cli --save-dev It is recommended to install webpack and webpack ...

Posted by zonkd on Tue, 14 May 2019 13:10:28 +0200

JS-16-Array Advanced API

1. On Array Advanced API Note: Attributes in objects are out of order For-in loops are designed to traverse objects, but the properties of objects are out of order, so for-in loops are designed to traverse out of order, so for-in loops are not recommended for traversing arrays. 1. Traverse the array using the for of loop intro ...

Posted by sagetim on Tue, 14 May 2019 12:13:30 +0200

Functions are the introduction of apply() and call().

Application, call in function When it comes to apply,call begins by talking about their origins with functions. Javascript functions are both objects It is no different from other javascript objects. And each function contains two non-inherited methods, apply() and call(), which can call functions indirectly. For example: function f() { c ...

Posted by ThunderLee on Sun, 12 May 2019 13:12:06 +0200

How to Manage z-index in Web Componentization

z-index attributes, although so much has been written, are still widely misunderstood and mishandled. Stacking problems in complex single-page web applications can become a major problem. Sticking to some principles, however, we can easily avoid these problems. If you've ever had any complex Web UI development, you might sometimes go crazy tryi ...

Posted by immanuelx2 on Sun, 12 May 2019 12:10:21 +0200

Realization of 2048 mini-games with JS

Preface: What I have been doing for a year is back-end stuff. I haven't written the front-end code. I forgot about it. I used jQuery before, but I can still do something good. Think of picking up a little, or waste the cultivation of the master. I've been reading blogs, but I don't have anything of my own. this has to change. why not start now? ...

Posted by shaitan on Sun, 12 May 2019 10:16:18 +0200

Front-end Asynchronous Solution-3 (Promise)

I haven't written for a few days. I've been learning Promise and generator intermittently these days. Today I can finally solve the asynchronous problem by combining the two things. Today I would like to share with you the usage of promise and the handling of asynchrony.As usual, let's simulate a Promise first. //Cough, that's how it works. let ...

Posted by philip@hux.co.za on Sun, 12 May 2019 07:51:26 +0200