Recently in the study of Vue, and then did a small back-office management system used to practiced hand, the development process, the thought of cutting pictures to upload the user avatar needs. Internet Baidu, found a lot of use is vue-cropper. I also use, personal feeling is very useful. Now here's a simple demo to show you how to use Vue-cropper.Where the user
Vue-meta-info:Installation:NPM Install Vue-meta-info--saveGlobal introduction of Vue-meta-info, in Main.jsImport vue from ' Vue 'Import metainfo from ' Vue-meta-info 'Vue.use (MetaInfo)Static use of metainfo in componentsIf your t
Vue-awesome-swiper
Vue-awesome-swiper Resource address: Carousel map GitHub
swiper2.x official use of documents: Swiper2 official documentation API
Documentation for all configurations: swiper3.x configuration Document
Use:
1. First NPM install dependent (I use 2.6.7 version)
NPM Install vue-awesome-swiper@2.6.7--save
2. Globally introduced method: Add in Main.j
;
this.edition+=newvalue-2004
}}
);
book.year=2005;
alert (book.edition);//2
Console.log (book.year);//2005
That is, when executing the book.year=2005, it actually executes the set method in year, and executes the year's Get method when executing the book.year;
var book={
_year:2004,
edition:1
};
Object.defineproperty (book, ' Year ', {
get:function () {
Console.log ("year get ') return
this._year
},
set:function (newvalue) {
Console.log ("year set")
if (newvalue>2004) {
this._year=
Constructor:
Each Vue.js application is started by using the constructor Vue to create a Vue root instance:When you instantiate Vue, you need to pass in an option object that can contain options such as data, templates, Mount elements, methods, life cycle hooks, and so forth.
You can extend the Vue constructor functi
VUE-Scaffolding construction, vue-scaffolding
1. What is vue-cli?
Vue-cli is a scaffold of vue. js and is used to automatically generate a vue. js Project template.
Steps:
2. Installation-> Global installationNpm install
Summary of vue. js and summary of vue. js
This article mainly summarizes the understanding of vue:
Reference Source: http://blog.csdn.net/generon/article/details/72482844
Vue. js is a progressive framework for building user interfaces. Its core library only focuses on the view layer. Compared with other frameworks, it
Custom Event function diagrams of Vue components and custom diagrams of vue Components
Use v-on to bind custom events
(1) webpack-based project Initialization
Before using it, we first use npm to build a vue application so that the project can be used with the webpack module package. The command is as follows:
Enter the custom empty folder vuepro. During myapp pr
Provides various official and user-released code examples. For code reference, you are welcome to exchange and learn. Today we will introduce a Statistical Chart plug-in: Highcharts. It is used to generate a seasonal average rainfall columnar Statistical Chart.
The demo and Free Download Links are available at the bottom of the page. If you want to see more
Js Special Effects,
Website source code,
Js tutor
Download libchart
From: http://blog.csdn.net/dj0379/article/details/7451946
Libchart charts are really easy to use. The only pity is that they do not support Chinese characters and are garbled in charts. After pondering, I used the experience of modifying Chinese garbled characters in the dotproject and changed Libchart. Now I have successfully supported Chinese fonts.The procedure is simple:1. Write your own PHP file that generates charts using the Libchart library and save it in UTF-8 encodin
Vue. js computing attributes computed and $ watch, vue. jscomputed
Binding expressions in a template is very convenient, but they are only used for simple operations. The template is used to describe the view structure. Adding too many logic in the template will make the template too heavy and difficult to maintain. This is why Vue. js limits the binding expressi
Vue-based website front-end permission management (frontend and backend separation practices) and vue permission management
As a popular language, Javascript is widely used. It can be seen everywhere from the front-end to the back-end, this technology is also widely used in our project to develop front-end pages such as CMS and other data analysis systems, for this reason, I am very interested in and use it
Vue. js implements data pulling and updating using custom commands. vue. js customizes data pulling and updating.
Preface
The code snippet of this article is located in the single file component of vue, that is. in the file at the end of vue, this article describes only one implementation method. It is neither the only
A deep understanding of the principles of Vue one-way data streams and a deep understanding of vue data streams
What is one-way data stream?
One-way data streams can only modify the status in one direction. It is a simple example of unidirectional data streams:
Simple diagram of one-way data stream
A unidirectional data stream corresponds to a bidirectional data stream (also called bidirectional binding ).
When you use vue-router in vue to switch the page, the scroll bar will automatically scroll to the top of the page, vuevue-router
Sometimes we need to scroll the page scroll to a fixed position.Window scrollTo() Method.
Syntax:scrollTo(xpos,ypos)
Xpos: required. X coordinate of the document to be displayed in the upper left corner of the document display area.
Ypos: required. Y coordinate of the document to
Vue. js custom command usage and instance parsing, vue. js Parsing
Most of the Articles on Vue. js custom commands on the market talk about syntax and seldom talk about actual application scenarios and use cases. Even if you understand how to write them, you do not know how to use them. This document does not describe the syntax. It describes the usage of custom
Use the Compass method in Vue, and use the compass method in vue.
Motivation
After a long delay, I finally made up my mind to write my own personal websites. Not only do I have to look so cool, but I also need to be OK with technology, so take this opportunity to exercise your unfamiliar technologies. The website plans to use Vue as the front-end framework, and C
Describes the sequence of vue functions and vue functions.
Method is used to define the method. For example, if you @ click = "test", methods defines the test method.
Both created and ready are the lifecycles of vue components.
Created
Type: Function
Details:
It is synchronously called after the instance is created. At this time, the instance resolution opt
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.