Vuejs family bucket series (VIII) --- components
brief introduction
What is a component: a component is one of the most powerful features of Vue.js.
Components can extend HTML elements and encapsulate reusable code. At a higher level, components are custom elements for which the compiler of Vue.js adds special features. In some cases, components can also be in the form of native HTML eleme ...
Posted by AbydosGater on Thu, 30 Apr 2020 20:33:50 -0700
Cross domain request processing of vue proxyTable interface
1. Foreword
When using vue to develop mobile app and using http to request interface data, cross domain request of vue proxyTable interface appears
2. The vue http request code is as follows:
this.$http.post(this.URL + '/mobile/base/getBaseInfo.do',{type:1})
.then(function (res) {
alert(res.data.name)
})
.catch(function (er ...
Posted by fighter1430 on Thu, 30 Apr 2020 18:21:42 -0700
Calculation properties of Vue.js
Calculation attribute keyword: calculated
Calculation attribute purpose: used to deal with some complex logical problems.
I believe that many people have encountered the problem of string inversion. Let's demonstrate it with computational properties
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue ...
Posted by rmbarnes82 on Thu, 30 Apr 2020 17:46:03 -0700
vue can't use El input of element UI to monitor the carriage return event
From: http://blog.csdn.net/u014520745/article/details/71746343
Only for learning, not for business!!!
vue can't use El input of element UI to listen to the carriage return event. The reason is that the original event is hidden after the element UI itself encapsulates a layer of input tag. Therefore, the following code runs unresponsive: ...
Posted by johlwiler on Thu, 30 Apr 2020 17:33:46 -0700
How to use the table in iView: switch,button
Code instance
iView It is a very easy to use vue component type ui component for developing background management system. It has been defined in it: table component, select component, tap component, tree tree component, DataPicker date component, TimePicker time component, Slider component, whatever you want to use, it has, you can't imag ...
Posted by phpvolution on Thu, 30 Apr 2020 09:38:20 -0700
Basic use of AMD - requireJS in JavaScript modular programming
AMD of JavaScript modular programming
requireJS basic use
Tags (space delimited): JavaScript
Reference article
AMD specification
AMD is the abbreviation of "Asynchronous Module Definition", which means "Asynchronous Module Definition". It loads the module asynchronously, and the loading of the module does not affect the ru ...
Posted by nlhowell on Thu, 30 Apr 2020 07:59:20 -0700
vue prevents events from bubbling
Using stop and capture to terminate event bubbling and capture events
Event bubbling transfer from bottom up
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>vue Prevent events from bubbling</title>
<script src="./vue.js" charset="utf-8"></script>
</head>
<body& ...
Posted by jzhang1013 on Thu, 30 Apr 2020 04:25:04 -0700
Getting started with Vue.js -- binding of form input (6)
Full case demo
<html>
<head>
<title>form input binding</title>
<meta charset="UTF-8">
<script src="https://cdn.jsdelivr.net/npm/vue"></script>
</head>
<body>
<div id="app">
//Add a favorite star:
<input @keyup.13="addStar" v-model="star">
...
Posted by djot on Wed, 29 Apr 2020 22:41:15 -0700
Simple implementation of an ES5 Vue Dialog plug-in
Calling the Dialog component of van t is very cool, so I want to implement one myself~
Because of project compatibility, ES6 is not used
(1) The renderings are as follows:
(2) Configurable parameters: icon, content, whether to disappear automatically, whether to display the bottom button area, and button callback function
(3) Component code
...
Posted by nassertx on Wed, 29 Apr 2020 10:34:22 -0700
vue+axios set token and add request interceptor
1, When the front and back ends are completely separated, the idea of implementing token verification in Vue project is as follows:
When logging in for the first time, the front end calls the login interface of the back end, and sends the user name and password
The back end receives the request, verifies the user name and password, and returns ...
Posted by buraks78 on Wed, 29 Apr 2020 08:10:44 -0700