vue advanced: computed VS watch
Chestnuts
Let's start with an example
<template>
<div>
<input type="text" placeholder="Please enter a to-do" @keyup.enter="insertTodo" :value="todo">
<ul v-for="(todo, i) in todos" :key="i">
<li>{{ todo }}</li>
</ul>
<!-- It's complicated,It is also c ...
Posted by elacdude on Wed, 19 Jan 2022 21:19:42 +0100
Vite + vue3 + Vue router + vuex + CSS preprocessor (less/sass) configuration guide - the most detailed series in the whole network
@[TOC](Vite+Vue3+Vue Router+Vuex+CSS preprocessor (less/sass) configuration guide - the most detailed series in the whole network)
Official Chinese documents of Vite Vue3 official Chinese document Vue Router 4.x Official Chinese documents Vuex 4.x Official Chinese documents
This article only introduces the detailed steps of using Vite to buil ...
Posted by My220x on Wed, 19 Jan 2022 21:03:13 +0100
Front end common interview basic questions
1, Self introduction
1.1 name, graduation school (can be said or not), project experience, age and working years
2, vue correlation
2.1 routing mode: the difference between hash mode and history mode
1.The appearance of the path:
stay vue There are in the routing configuration of mode The most intuitive difference between options is url in ...
Posted by cleary1981 on Wed, 19 Jan 2022 20:48:00 +0100
Comparison of sorting algorithms
Reference:
https://blog.csdn.net/lyhkmm/article/details/78920769
https://blog.csdn.net/u012681635/article/details/80453664
https://www.zhihu.com/people/dong-hua-xue-bian-cheng
Sorting algorithm:
1. Simple sorting: bubble, select, insert
1.1: bubble sorting: compare two by two. If the front is greater than the rear, change the positi ...
Posted by jamesgrayking on Wed, 19 Jan 2022 19:47:57 +0100
ECMAScript6 coding specification
Normative content
statement
1.1 variables
For variables that are only valid in the current scope, let should be used instead of var. for global variable declaration, VAR should be used, but too many global variables should be declared to avoid polluting the environment
// Not good
const variables;
const globalObj = null; // Not ...
Posted by shibiny on Wed, 19 Jan 2022 17:02:56 +0100
Arrays, functions and objects of JavaScript(2)
1, Array
Concept of array: It can store a group of relevant data together and provide convenient access What is an array: An array is a collection of data, each of which is called an element. Any type of element can be stored in the array.
//Ordinary variables can only store one value at a time
var num = 10;
//Arrays can store multiple va ...
Posted by shoutdots on Wed, 19 Jan 2022 15:01:28 +0100
Ab initio front end --es6 (numerical expansion)
Numerical extension
Number.isFinite(),Number.isNaN()
ES6 provides a new Number on the Number object Isfinish() and Number Isnan() two methods.
Number. Isfinish () is used to check whether a value is finite.
Number.isFinite(15); // true
Number.isFinite(0.8); // true
Number.isFinite(NaN); // false
Number.isFinite(Infinity); // false
Number.is ...
Posted by Stu on Wed, 19 Jan 2022 14:26:32 +0100
Apache configuration and Application
catalogue
1, Building a virtual web host
2, Domain name based virtual host
3, Options instruction interpreter
4, AllowOverride instruction interpretation
5, IP address based virtual host
6, Apache connection retention
7, Building Web virtual directory and user authorization restrictions
1, Building a virtual web host
Virtual web host ...
Posted by Master_Phantom on Wed, 19 Jan 2022 11:09:51 +0100
[responsive layout of mobile Web development]
[responsive layout of mobile Web development] front end notes (20)
This study note is a personal summary of teacher Pink's course. Please indicate the source for reprint!
1, Responsive development
1.1 principles of responsive development
Media query is used to set the layout and style of devices with different widths, so as to adap ...
Posted by mrgrinch12 on Wed, 19 Jan 2022 07:40:55 +0100
In order to make you advanced Canvas, I spent 7 hours writing 3 interesting games!!!
prefaceHello, I'm Lin Sanxin. I believe you have read my previous introduction to canvas In order to get her started with canvas in 10 minutes, I stayed up late and wrote three small projects and this article , I already have an entry-level understanding of canvas. Today, I wrote three interesting games with canvas to make you happy. Yes, I hav ...
Posted by spicey on Wed, 19 Jan 2022 07:09:16 +0100