Algorithm and data structure

1, Algorithm ++n n + + differences int n=1,n1,n2; n1=++n; System.out.println(n1); System.out.println(n); n2=n++; System.out.println(n2); System.out.println(n); 2 2 2 3 1. Concept Philosophy of writing algorithms: From simple to complex: verify step by step and print more intermediate results Part first and then whole: subdivide when ...

Posted by hiprakhar on Fri, 03 Dec 2021 00:00:07 -0800

vue3 learn to jot down 11

Deep component Provide/Inject Usually, we use prop when we need to transfer data from the parent component to the child component. However, for deeply nested component systems, sometimes deep sub components need part of the contents of the parent component. At this time, it will be very troublesome to still use the prop mechanism. For examp ...

Posted by diode on Tue, 30 Nov 2021 22:59:14 -0800

H5 pit location guide for mixed development

HTML direction Call system functions Use < a > to quickly call the mobile device's three communication functions of phone / SMS / email, and use < input > to quickly call the mobile device's Library / file. These functions facilitate the interaction between the page and the system. The key is that the call format must be accurate ...

Posted by laPistola on Fri, 26 Nov 2021 19:53:09 -0800

React's Hook allows function components to have the characteristics of class components

1, What problems have been solved? Hook is a special function starting with use (useState, useEffect, etc.), which can only be used inside the function component. It allows you to use state and other React features without writing class. For example, useState is equivalent to the state object in the class component. 1. Update instructions for ...

Posted by Ryodox on Tue, 16 Nov 2021 17:24:23 -0800

How to upload a package

1. What is a bag? The third-party module in Node.js is also called a package. It is developed by a third-party individual or team and is free for everyone to use 2. Package classification Project package – development dependency package (stored in devdependences directory) – production dependency package (stored in the depend ...

Posted by TeNDoLLA on Fri, 08 Oct 2021 00:13:03 -0700

Step on pit mark 18 vue component folding v-show | depth merge object | El checkbox group size setting is invalid | El form element height and vertical spacing are not uniform

2021.9.1 Pit 57 (component folding): simple folding to the left without animation. The effect is to click the long bar with arrow (added background color for easy viewing) to change the folding state. The idea is that the outer package flex is automatically arranged from left to right, use v-show to control the display of inner elements, and u ...

Posted by mudasir on Wed, 01 Sep 2021 14:36:59 -0700

vue+vuex+axios+echarts Draw a dynamically updated map of China

I. Build projects and install plug-ins # Install vue-cli npm install vue-cli -g # Initialize project vue init webpack china-map # Cut into Catalog cd china-map # Installation Project Dependency npm install # Install vuex npm install vuex --save # Install axios npm install axios --save # Install ECharts npm install echarts --save II. Pr ...

Posted by jimmyborofan on Mon, 20 Jul 2020 08:30:08 -0700

express Learning (3) - cookie s and session s

express Learning (3) - cookie s and session s Cookies exist in the browser and can only store up to 4K of data, which is not safe Session exists in the server and cannot be independent (read cookie s before session), which is more secure cookie tool Send cookie s: Write the basics first: const express = require('express'); var server=expre ...

Posted by Jedi Legend on Thu, 16 Jul 2020 08:18:30 -0700

Beginner vue+webpack (front end of formal pit entry)1

1. Install firstNode.jsEnvironment Official Website Address https://nodejs.org/en/ Text editor chooses sublime text3 (vs is too big) 2. Establishing projects 2.1 Create a new project folder, code-x code number x plan, and put it on the desktop 2.2 Initialization cd c:\user\duab\desktop\code-x npm install -g vue-cli //Global Installation vue-c ...

Posted by BinaryDragon on Mon, 13 Jul 2020 08:02:55 -0700

Beginner vue+webpack (front end of formal pit entry)1

1. Install firstNode.jsEnvironment Official Website Address https://nodejs.org/en/ Text editor chooses sublime text3 (vs is too big) 2. Establishing projects 2.1 Create a new project folder, code-x code number x plan, and put it on the desktop 2.2 Initialization cd c:\user\duab\desktop\code-x npm install -g vue-cli //Global Installation vue-c ...

Posted by skehoe on Mon, 13 Jul 2020 08:03:31 -0700