Minimum heap maximum heap understand? To understand the application of heap in the front end

⚡ preface We all know that a tree is a data structure, but we may rarely hear of the data structure heap. In fact, heap is a special kind of complete binary tree. For the front end, we usually know the maximum heap and minimum heap, and we often use the maximum heap and minimum heap to solve various problems. For example, the K largest ...

Posted by pbdude23 on Sun, 16 Jan 2022 14:07:45 +0100

JavaScript (data type + operator)

JavaScript (I) (data type + operator) Introduction - JavaScript tutorial - online channel (wangdoc.com) 1, Data type 1. What is JavaScript language? 1.1 definitions JavaScript is a lightweight scripting language. The so-called "script language" means that it does not have the ability to develop the operating system, but is only u ...

Posted by leetee on Sun, 16 Jan 2022 13:52:20 +0100

JavaScript -- data type, function, array, string

1, Data type (1) Data type JavaScript variables can hold a variety of data types: numeric values, string values, arrays, objects, and so on: var length = 7; // number var lastName = "Gates"; // character string var cars = ["Porsche", "Volvo", "BMW"]; // array var x = {firstName:"Bil ...

Posted by jamess on Sun, 16 Jan 2022 13:00:43 +0100

js event operation syntax

1, Event binding syntax Grammatical form 1 Event listener} tag object addEventListener('click',function(){}); Grammatical form 2 The on syntax binds the} label object onclick = function(){} On syntax is an event processing function bound by = equal assignment. In essence, the = equal assignment performs the overwrite assignment. The ...

Posted by dclamp on Sun, 16 Jan 2022 11:36:34 +0100

The expansion syntax of the deep and shallow copy of the filter and map array of javascript

filter and map Filter filter data (same as data) The filter does not change the original array and returns a new array return judge true and false Returns the children of return true Children of the original array are not modified Length: less than or equal toData: subsets Example 1: let array1=['yma16','china'] let array2=array1 // ...

Posted by P3t3r on Sun, 16 Jan 2022 10:41:22 +0100

This Bootstrap drop-down list select explains and uses it in detail. If you don't understand it, give me a bad comment

Foreword: I have been developing Android for many years and began to learn web front-end from 0. It is also found that many blogs are basically copied and copied, which is not clear. So write down what I think I can't write clearly on my blog. After learning the vue framework, I learned the development of the native official website, but when I ...

Posted by maddali on Sun, 16 Jan 2022 10:22:33 +0100

ES6 of JavaScript series

1, Basic grammar 1. let command (1) Declare variable let a; Declare variables and assign values (variable initialization) let a = 100; console.log(a); // 100 (2) Note: ① Variable cannot be declared repeatedly let star = 'ldh'; let star = 'zxy'; console.log(star); // Will report an error ② Written in a code block {} is ca ...

Posted by PRodgers4284 on Sun, 16 Jan 2022 09:34:39 +0100

Data type and type conversion in 02-JS

Data type and type conversion in 02-JS 1, Data type Values in JS, whether literal or variable, have explicit types. (1) Overview 1. 5 basic types Number number type String string type Boolean boolean type, with only two values true and false Undefined type. There is only one value of this type, which is undefined Null type, the value of this ty ...

Posted by freewholly on Sun, 16 Jan 2022 07:23:50 +0100

On the process of optimizing picture matting with canvas

Premise: the work involves IPTV Set-top Box EPG development business. Normal IPTV Set-top Box video playback calls the Mediaplayer component encapsulated by the manufacturer, which is different from ordinary video playback. The rendered video window belongs to the underlying rendering of Android system, and the html page element is not a layer. ...

Posted by dmyst3 on Sun, 16 Jan 2022 04:33:14 +0100

[solution] Vue3 multi-component asynchronous task queue

About Vue3 and MIT The usage of JS is introduced in another article Some Vue3 knowledge points sorted out (550)+ 👍) Demand introduction Recently, the company has a demand for a mobile page. A page contains multiple floors, each of which is a separate component. Each component has its own logic. The page is similar to the welfare page of ...

Posted by drayfuss on Sat, 15 Jan 2022 21:25:35 +0100