Review of JQuery basic syntax (1) -- selectors, JQuery object properties and methods

JQuery introduction JQuery is a fast and concise JavaScript framework, which is another excellent JavaScript code base (or JavaScript framework) after Prototype. The purpose of jQuery design is "write Less, Do More", that is to advocate writing less code and doing more. It encapsulates common JavaScript function code ...

Posted by Zaynt on Thu, 26 Dec 2019 16:20:40 +0100

Using SQL to find out the names of students whose scores are more than 80 in each course

Topic: there is a student table, which records the courses and scores of all students in a class. Each student has multiple courses. Different students may take different courses. Try to write an SQL statement to find out the names of all students whose course scores are greater than 80.Table structure and data are as follows: - ...

Posted by webpals on Wed, 25 Dec 2019 22:34:01 +0100

C Language Notes 07_Enumeration&Pointer

Emum (enumeration) Enumeration is a basic data type in C. It can make data more concise and readable. Enumeration grammar is defined in the following format: enum enumeration name {enumeration element 1, enumeration element 2,...}; For example, if there are 7 days in a week, instead of enumeration, we need to use #define to define an alias for ...

Posted by goodtimeassured on Thu, 19 Dec 2019 10:39:52 +0100

Front end page export PDF

This is an encapsulated vue component, which simply sets the export header, content, and bottom The content can be paged. It can export all pages of the list The implementation is based on html2canvas to convert the page to image, and then use jspdf to add the generated image directly to pdf html2canvas configuration reference address JSPDFS G ...

Posted by nolos on Tue, 17 Dec 2019 18:02:46 +0100

LinkedList source code analysis

I. overview This paper is based on JDK8 The underlying LinkedList is realized by the data structure of two-way collection Memory does not need continuous space guarantee Element search can only be sequential traversal search Better performance for add and delete operations LinkedList can be used as List, queue and stack. It supports adding an ...

Posted by txhoyt on Tue, 17 Dec 2019 09:57:45 +0100

Use asynchronous/wait in forEach loop

Is there any problem using async / await in the forEach loop?I'm trying to traverse the file array and await the contents of each file. import fs from 'fs-promise' async function printFiles () { const files = await getFilePaths() // Assume this works fine files.forEach(async (file) => { const contents = await fs.readFile(file, ' ...

Posted by Garath531 on Tue, 17 Dec 2019 03:16:20 +0100

Use of wechat applet Canvas

This issue introduces how Canvas draws pictures, including how to draw high-definition pictures, use network pictures / local pictures, date conversion (lunar and solar calendar / week conversion), picture adaptation mobile phone model, etc. Layout introduction There are four parts here. The picture above shows the QR Co ...

Posted by patrick99e99 on Mon, 16 Dec 2019 17:02:07 +0100

Explore polymorphisms and their benefits in Java

Polymorphism is one of the basic principles of object-oriented software.The term often refers to things that can take many forms.In an object-oriented approach, polymorphism makes it possible to write programs with late-bound references.Although it is easy to create polymorphic references in Java, the concepts behind them have a far-reaching im ...

Posted by David-fethiye on Mon, 16 Dec 2019 04:54:37 +0100

Auto rotate ViewPager

1. overview github address: https://github.com/luoshenzhi/AutoPlayViewPager I didn't want to build the wheel again, but I didn't feel satisfied after trying several, so I had to do it myself 1.1 characteristics The code is less intrusive. Just change the class name without changing the adapter Draw indicators by code, n ...

Posted by xhelle on Sun, 15 Dec 2019 21:07:46 +0100

idea uses ant design, rcreate react app

Download and install node npm Get into node Select Windows installation package (. MSI) 64bit to download and install Using msi will configure the environment variable path, which is convenient All commands are basically in the project path or directly in the terminal of idea //Open the command prompt to test whether the instal ...

Posted by marian on Sun, 15 Dec 2019 15:34:24 +0100