ES6 map, filter, find, find index

The new project uses a lot of es6 grammar in react. I've seen Mr. Ruan Yifeng's introduction to es6 once before. Recently, I found that there are many places that I don't understand very deeply. So I've come again. By the way, I'll summarize some very practical methods. First of all, I declare that this article is reproduced: ...

Posted by Ward on Wed, 09 Jan 2019 08:33:10 -0800

Write maintainable javascript>> note 2 (notes)

Annotations are the most common part of code. They are another form of document that programmers are willing to spend their time writing at last. However, for the overall maintainability of code, annotations are a very important part. Opening a file without any annotations is like a fun adventure, but if you have limited time, the task becomes ...

Posted by kokomo310 on Tue, 08 Jan 2019 09:39:09 -0800

Learning from scratch about web development HTML 5-9. Multimedia &10. floating framework iframe

1. Multimedia Embedding embed is a new tag in H5. It is a self-closing tag. There are also audio and video Tags in H5 which can be used for multimedia development of web pages. Practice has found that embed, no matter how it is set up, will play as soon as it opens the web page. Video and audio are the same, which is very im ...

Posted by kpowning on Tue, 01 Jan 2019 19:00:08 -0800

For Each, for...in, for...of the loop method in JavaScript

JavaScript has been around for more than 20 years, and the way we've been using it to loop an array is this: for (var index = 0; index < myArray.length; index++) { console.log(myArray[index]); } I. forEvery Since JavaScript 5, we have been able to use the built-in forEach method: the function callback in the forEach method has three pa ...

Posted by PJSheltrum on Tue, 01 Jan 2019 01:24:08 -0800

JavaScript - the understanding of this and the use of call, apply and bind

In JavasScript, this is a magical keyword. Sometimes, we may see a lot of this and get dizzy. However, as long as we understand this, we don't believe that we will go around ourselves in the future. Here, I record my understanding of this and its related application. I. Understanding this This in Javascript always points to ...

Posted by rickphp on Mon, 31 Dec 2018 12:48:08 -0800

Layout in HTML: absolute, relative, fixed, static

Layout in HTML: absolute, relative, fixed, static 0 Collection (1) The content of positioning in CSS is: position:relative | absolute | static | fixed Static (static) has no special settings. It follows basic positioning rules and cannot be hierarchically graded by z-index, which is the default value.Relative object can not be overlap ...

Posted by pachanga1 on Thu, 13 Dec 2018 07:18:08 -0800