es6 programming style

Block-level scopes (1) let replaces var ES6 proposes two new commands for declaring variables: let and const. Among them, let can completely replace var, because they have the same semantics, and let has no side effects. 'use strict'; if (true) { let x = 'hello'; } for (let i = 0; i < 10; i++) { console.log(i); } If the above cod ...

Added by JBWebWorks on Mon, 27 May 2019 20:54:42 +0300

Detailed Analysis of MergeSort and QuickSort-Merge Sort and QuickSort

Change from: http://blog.csdn.net/qt_pixie/article/details/1361777 MergeSort and QuickSort are two comparatively similar sort methods, which are implemented through Divide and Conquer. You need to sort in a recursion fashion. Their similarity lies in the principle. The first thing to do is to split N elements into two parts for sorting, eac ...

Added by pyro13 on Fri, 24 May 2019 21:07:09 +0300

Section 64 of Android Zero Foundation Introduction: Unveiling the True Face of Recycler View Lushan Mountain

Do you remember that you used to learn ListView from Issue 38 to Issue 50, among which you used 8 to talk about the use of ListView, I believe you have mastered it. So let's learn about a new list component in Android 5.X, which is the use of RecyclerView.     I. Overview of Recycler View   From the previous study, we know that ListView ...

Added by storyboo on Fri, 24 May 2019 02:38:10 +0300

Chapter 2 of python Foundation

Chapter 2 of Python Foundation Binary system Character encoding Basic Data Type - Number Basic Data Type - String Basic Data Type - List Basic data type - tuples Variable, immutable data types and hash Basic Data Type - Dictionary Basic Data Type - Set Binary system Binary system is a kind of system used in computing technology. The binary ...

Added by Cornelia on Mon, 20 May 2019 04:30:59 +0300

Wechat Small Program E-commerce Actual Warfare - Home Page (Part 2)

Last article: Wechat Small Program E-Commerce Practical Warfare - Home Page (Part 1) Well, in the last issue, we finished the homepage search, navigation bar and advertisement rotation. Then we will continue to finish the rest of our homepage. Let's see what we want to achieve first. In this issue, we want to achiev ...

Added by Thumper on Sat, 18 May 2019 22:00:49 +0300

VUE2.0 Picture Upload Function (Mobile End)

This paper mainly introduces the realization of VUE2.0 image upload function. The principle is to achieve this effect through js control and input tag, without loading other components. The results are as follows: 1.DOM code 1.1 input tag Because we upload pictures by input tag, but the style of input tag is ugly, so ...

Added by lunarul on Sat, 18 May 2019 18:32:21 +0300

The Use of AIDL--Implementing Cross-process Communication

AIDL (Android Interface Definition Language) is an Android interface definition language. Simply speaking, in the process of Android development, when encountering problems of multi-process development or inter-process communication, it can be implemented simply and quickly. The following describes the implementation st ...

Added by brandye71 on Sat, 18 May 2019 17:45:14 +0300

Section 39: IO in Java

Title Map IO in Java Classification of IO The first is: Input and output streams The second is: Byte stream and character stream The third category: Node Flow and Processing Flow Node flow processes data, and processing flow is processed on the basis of node flow. Focus in IO: InputStream OutputStream FileInputStream FileOu ...

Added by curlytail on Fri, 17 May 2019 05:50:24 +0300

Introduction to PostgreSQL Full-Text Retrieval

PostgreSQL comes with a simple full-text retrieval engine that enables full-text retrieval of small amounts of data.In this article, we will guide you through this feature, which is sufficient for small-volume searches without the need to build additional heavy-weight full-text retrieval servers such as ES. For detailed full-text ...

Added by pumaf1 on Fri, 17 May 2019 00:39:42 +0300

Use spring Response Entity to process HTTP return requests

Usually, in the context of front-end and back-end separation, our back-end services are usually returned to the front-end formatted data, such as Json. At the beginning, we used JSON package to produce a JSON string, which is customized with some API s of http protocol. spring has evolved to the present day and has packaged generic ...

Added by smiley_kool on Thu, 16 May 2019 16:08:42 +0300