Vue.js Learning Notes: The Difference between v-if Conditional Rendering and v-show

I. What is v-if? v-if is used to render elements according to the true or false conditions of the values of expressions, and can be applied automatically when Vue inserts/updates/deletes elements Transitional effect. v-if is a true conditional rendering, because it ensures that conditional blocks properly destroy and reconstruct event listen ...

Posted by billcoker on Sun, 09 Jun 2019 15:42:41 -0700

Share a clumsy way to read JS code once

Has been writing server-side, recently using Netty-NIO to write chats. The web side uses JS to realize the chat interface... JS was not used very much, so I set up a JS Demo which imitated Wechat. It uses the vue.js library.   Cruel source code: About 600 lines, but it's too much for a rookie like me. There are no comments in the code, and the ...

Posted by Lucidnight on Fri, 07 Jun 2019 19:07:05 -0700

[Vue style binding]

HTML-style binding is nothing more than the binding of Class and Style. The native binding form can still be used when using Vue, but since Vue is used, it is recommended to follow the grammatical specification of Vue. I. Binding HTML Class 1.1 Object Grammar As we said before, the way to bind attributes in html is to use [v-bind], so is class ...

Posted by tickled_pink on Fri, 07 Jun 2019 16:53:33 -0700

Practice and Design of Vue Component Library

Now the rapid development of the front-end has made the component pattern more important. For component libraries on the market, although they can satisfy most of the projects, some small details and usage aspects, or some bug s in the UI inventory, can cause a headache. Then how should we face these problems? As the saying goes, you can eat an ...

Posted by echelon2010 on Thu, 06 Jun 2019 17:33:16 -0700

Detailed Steps for Building Complete Project Example with webpack+vue+vueRouter Modularization-Introduction

New projects Start (confirm that the node environment and npm package management tools have been installed) 1. New project file named start_vuedemo 2. NPM init-y initialization project, my win7 system, project under the vue_test_project folder of d disk named start_vuedemo project folder As shown in the figure: Under this project, a pack ...

Posted by Tubby on Thu, 06 Jun 2019 17:25:14 -0700

Vue.js Tutorial: Building a pre-rendered SEO friendly application example

What is Vue.js exactly? Vue.js Vue.js is a lightweight, incremental JavaScript framework that helps you build your user interface Don't be fooled by the definition of JS Framework.Vue is distinct from the current popular React.js & Angular.js.For beginners, it is not an open source by-product of commercial technology giants such as ...

Posted by edspace on Thu, 06 Jun 2019 10:11:57 -0700

Form Control Binding

Basic Usage You can use the v-model instruction to create two-way data binding on form control elements; it automatically selects the correct method to update elements according to the type of control; but the v-model is essentially a grammatical sugar, which is responsible for monitoring user input events to update data, and especially for som ...

Posted by SWI03 on Wed, 05 Jun 2019 16:24:07 -0700

vue-cli Setting up Project Problem Solution

Copyright Statement: This article is the original article of the blogger. It can not be reproduced without the permission of the blogger. vue-cli initialization Steps: Building node Environment vue-cli is a Vue hook framework based on node environment, which allows developers to quickly build a set of configurations including vue, ut ...

Posted by 8ta8ta on Wed, 05 Jun 2019 15:14:52 -0700

A vue small demo based on ES6+webpack

Last article A vue Small demo Based on ES5 We talked about how to make a small demo with ES5, vue-router, and let's turn it into an ES6+webpack based demo. 1. Environment Setup and Code Conversion Let's set up a vue development environment first, according to one of my essays Vue Development Environment Setup and Hot Update , we build the devel ...

Posted by slimjim on Wed, 05 Jun 2019 10:40:41 -0700

Vue Form Control Binding

Previous remarks This article describes Vue form control binding in detail   Basic usage You can use the v-model instruction to create two-way data binding on form control elements. It automatically selects the right method to update elements according to the type of control. v-model is essentially just grammatical sugar, which monitors use ...

Posted by willwill100 on Wed, 05 Jun 2019 10:33:15 -0700