vue learning notes II: Fundamentals of vue development
1, vue instance
1. Create vue instance
<script>
var vm=new Vue({
//option
})
</script>
Define multiple attributes through objects (options)
2, el unique root label
tips: vs code, the initialization method of HTML page structure is: enter first! Then press tab. (this saves too much trouble) Operation steps:
1.introduce vu ...
Posted by bobbuilder on Fri, 24 Sep 2021 08:34:21 -0700
vue high frequency interview questions
1. Why is data a function and returns an object?
The reason why data is only one function is that a component may call multiple times, and each call will execute the data function and return a new data object. In this way, data pollution between multiple calls can be avoided.
2. What are the value transfer methods between components?
The par ...
Posted by s2j1j1b0 on Tue, 21 Sep 2021 20:05:23 -0700
Vue basic instruction (text, binding event, interpretation, loop)
Vue instruction
v-text instruction
Set the text value of the label (textContent)
v-text < p v-text = "data distortion" ></p> <!DOCTYPE html>
<html>
<head>
<title></title>
<script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
< ...
Posted by webguync on Mon, 20 Sep 2021 09:41:45 -0700
vue2 notes component development
Component development
What is componentization?
In the face of the treatment of complex problems, disassemble the problems into many small problems that can be handled, and then put them into the whole, you will find that the big problems will be solved easily.
The idea of componentization is similar:
If we implement a page with very comple ...
Posted by james_andrews on Mon, 20 Sep 2021 00:58:04 -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
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
Vue study day 3
filter
Used in interpolation expressions and v-bind attribute binding instructions.
<p>{{ msg | msgFormate }}</p>
<p :id="msg | msgFormate"></p>
‘|’ -- Pipe character, used to split characters and filters
Filters must be declared before use.The filter declared in the vue object is pri ...
Posted by adamlacombe on Tue, 14 Sep 2021 18:56:50 -0700
Introduction to vue Basics
vue
vue Foundation
Install vue
Using CDN import Download and import npm installation npm i vue
vue is declarative programming.
Case 1
<div id="app">{{message}}</div>
<script>
// let is used to define variables and const is used to define constants
const app = new Vue({
el: '#app',
...
Posted by bigray on Tue, 14 Sep 2021 15:26:30 -0700
vue component library development upload npm
1. Build vue project first
Run Vue cli
vue create vui
We renamed src to examples and added the packages directory to store our custom components
However, cli will start the service under src by default. If the directory name changes, we need to manually modify the configuration and customize the file of packaging configuration items. ...
Posted by polymnia on Mon, 13 Sep 2021 13:04:52 -0700
Request interceptors and response interceptors in Vue
Front
Hello everyone, I'm here again. Today we'll talk about what is a request interceptor and the role of a request interceptor. Well, I won't say anything superfluous. I'll start today's explanation right away
Here we go
request interceptor
The function of the request interceptor is to:
Some operations are performed before the ...
Posted by nick1 on Sat, 11 Sep 2021 18:22:28 -0700