Vue basics, easy to understand - from LeeVee
Teacher LeeVee from the very good Silicon Valley I advertise Silicon Valley
additional
Vue3 Custom Directive | Rookie Bird Tutorial (runoob.com)
index.html
<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml" xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
...
Posted by IanMartins on Sun, 26 Sep 2021 10:05:59 -0700
VUE3.0,DAY65, Vue routing guard
Global pre routing guard
Secure routing. For example, when we use the case shown in the figure below, only specific personnel can access the information displayed in the Message. We first use the local session store of the web page to enter a name with the value of my. Only the user whose value is my can access the message information in ...
Posted by cornick on Sun, 26 Sep 2021 04:14:22 -0700
Summary of commonly used processing dates and times in Python
Python time module
In Python documents, time is classified in Generic Operating System Services. In other words, the functions it provides are closer to the operating system level. Reading through the document, we can see that the time module is carried out around Unix Timestamp.
Get current time and conversion time format
// time() returns ...
Posted by TheWart on Sun, 26 Sep 2021 02:19:02 -0700
Do you know that these operations delete the console.log code
preface
Speaking of console.log debugging, needless to say, it is very easy to use. It has helped us solve many bugs during development. We can often see these pieces of console debugging in the development environment. However, the console information code is not allowed in the production environment. Are you still manually deleting one by on ...
Posted by Foser on Sat, 25 Sep 2021 17:58:43 -0700
02 - operators and structures
1-operator
1.1 classification of operators
Operator, also known as operator, is a symbol used to realize the functions of assignment, comparison and arithmetic operation.
JavaScript Operators commonly used in are:
Arithmetic operator Increment and decrement operatorsComparison operatorLogical operatorAssignment Operators
1.2 arithmetic o ...
Posted by fris on Sat, 25 Sep 2021 11:24:34 -0700
Built in object extensions of ES6: Array extension method, String extension method and Set data structure
1. Extension method of Array
1.1 extension operator (expansion syntax)
The extension operator (...) can convert an array or object into a comma separated sequence of parameters.
// 1. The extension operator (...) can convert an array or object into a comma separated parameter sequence
let ary = ['a', 'b', 'c'];
// ...ary; // 'a' , 'b', 'c'
...
Posted by sebastienp on Sat, 25 Sep 2021 04:56:16 -0700
The most complete js string operation method
Every time I use the string method of js, I have to search now. I can finally learn it today This article is transferred from https://juejin.cn/post/7010928535053271077#heading-20
1. Get string length
const str = "hello",
str.length
2. Get the value of the specified position of the string
The charAt() method obtains the character at the sp ...
Posted by jmdavis on Sat, 25 Sep 2021 00:07:02 -0700
[Algorithm-LeetCode] 429.Hierarchical traversal of N-fork trees (N-fork trees; Hierarchical traversal; BFS)
429.N-Fork Tree Hierarchical Traversal-Force Button (LeetCode)
Release: September 25, 2021 01:01:25
Problem description and examples
Given an N-fork tree, returns the hierarchical traversal of its node values (that is, from left to right, traverse layer by layer). The serialized input to the tree is traversed in sequence, with each set of ...
Posted by joshblue on Fri, 24 Sep 2021 09:41:58 -0700
Array and string methods that must be remembered
array
1. concat() is used to connect two or more arrays and return a new array (without changing the original array)
let arr1=[1,2,3,4]
let arr2=[5,6]
console.log(arr1.concat(arr2))//[1,2,3,4,5,6]
2. pop() is used to delete and return the last element of the array (changing the original array)
let arr=[1,2,3,4]
let res=arr.pop()
console.log ...
Posted by Grant Holmes on Fri, 24 Sep 2021 08:05:42 -0700
webpack complete configuration document
1. Introduction to webpack
1.1 static module bundler for modern javascript applications
Static: file resources
1.2 in addition to merging code, you can also translate and compress code
less/sass -> css
less/sass -> css
HTML / CSS / JS - > compact merge
2. Preparations before using webpack
2.1 webpack depends on Node environm ...
Posted by nvee on Fri, 24 Sep 2021 07:15:47 -0700