Vue construction project - preliminary construction
1. Prepare the environment
If you have an older version Vue cli, uninstall it
1 npm uninstall vue-cli -g //Or yarn global remove Vue cli
Install new version
cnpm install -g @vue/cli //yarn global add @vue/cli
vue -V
2. Create project
Create a project and write the project name
vue create <Project Name>//Humps (including u ...
Posted by Theramore on Mon, 20 Sep 2021 04:09:58 -0700
javascript advanced programming collection type reference
#javascript advanced programming (VI) collection type reference
1, Object
How to explicitly create an object instance (1) new + constructor let person = new People();
person.name = "abc";
person.age = 27;
(2) Object literal let person = {
name: 'abc',
age: 28
}
tips: a. Numeric property names are automatically converted to strings b. Wh ...
Posted by jamkelvl on Sun, 19 Sep 2021 20:56:14 -0700
Implementation principle of call and apply in JS
There are two functions call and apply on the prototype chain of the Object object in JS. Their main function is to point this of the called function to the target Object, i.e
Object.call(target_ele);
In another article, I also elaborated on ...
Posted by Geteburg on Sun, 19 Sep 2021 18:16:44 -0700
Reference type of JavaScript
Common collection reference types include Object, Array, Map, Set, etc
Object
Most reference values are of the Object type used.
// Literal definition
let obj = { // Store values of any type.
val: 10,
obj: {},
func() {
}
};
// Value
console.log(obj.val);
console.log(obj["val"]);
Array
Arrays in JavaScript are dynamic an ...
Posted by azwebdiva on Sun, 19 Sep 2021 13:52:32 -0700
(javascript learning) Review Record 1
1. Basic Use
1.1 Use
1. Internal Label 2. External labels
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<!-- script Write code-->
<script>
//<!--Pop-up window-->
alert("hello world");
</script>
<!--External introduction--&g ...
Posted by wsh on Sun, 19 Sep 2021 12:42:08 -0700
Built in object of JS
Packaging
Number(), String(), and Boolean() are respectively "wrapper classes" for numeric, string, and Boolean values.Many programming languages have the design of "wrapper classes". The purpose of wrapper classes is to enable the basic type values to obtain methods from the prototype of their constructor.
Summary of ...
Posted by Irap on Sun, 19 Sep 2021 12:09:24 -0700
vue component vue pdf encountered the problem that the content replaced by gnawing and loading pdf is not displayed
Recently done mobile terminal project, packaging PDF Preview component, colleagues started using vue-pdf To preview and step on the pit again and again, we basically encounter three problems:
1,PDF Chinese not displayed
2,PDF If the signature is not displayed, the console prompts: Warning: Unimplemented widget field type "Sig", falling back to ...
Posted by julian1 on Sun, 19 Sep 2021 11:42:45 -0700
02-Vue Base-Template Syntax
Preface
This article is from the Vue3 + Ts course of coderwhy Attached link:https://ke.qq.com/course/3453141 Who can reject a teacher who adds 100% positive comments?
Catalog
Preface
vs-code snippet
Template syntax
Use of mustache
Common Instructions
v-once directive
v-text
v-html
v-pre
v-cloak
v-bind
v-on
conditional rendering ...
Posted by unidox on Sun, 19 Sep 2021 05:54:39 -0700
The experience summary of exporting pdf in the foreground (html2canvas.js and the browser's own printing function - print.js) and some methods of exporting pdf in the background
Two ways to export pdf from the foreground
html2canvas.js & pdf.js
brief introduction
We can directly use html2canvas on the browser side to 'screenshot' the whole or part of the page. However, this is not a real screenshot, but by traversing the page DOM structure, collecting all element information ...
Posted by kurdishvoice on Sun, 19 Sep 2021 02:50:44 -0700
Vue series: core concepts and features of Vue
Hello, I'm front-end Fengfen, a program of second-line city. The second half of the year is a special month for us. At the end of July, Zhengzhou experienced many years of unexpected floods, unable to travel, resting at home, an epidemic occurred in August, working at home for a month, the epidemic in September passed, and finally came to work ...
Posted by fullyscintilla on Sun, 19 Sep 2021 01:02:01 -0700