Vue core concepts and characteristics

Vue (voice / vju ː /, similar to view) is a set of progressive framework for building user interface. >Features: easy to use, flexible, efficient, progressive framework. >Modules that need to be used can be combined at will Vue + components + Vue router + vuex + Vue cli I. concept and characteristics of Vue 1. What is a library and what ...

Posted by tanita on Fri, 18 Oct 2019 11:24:51 -0700

Why do data in vue return with return

Why do data in vue return with return I. original [vue modify object method] 1.set method, add a property and value The set method can also add properties and values to an object <script> export default { data(){ return { obj:{ name:'xi ...

Posted by ziv on Wed, 16 Oct 2019 14:58:56 -0700

vue implements the instruction of local rolling load plus custom rolling load

First, implement the local rolling load <template> <div class="cart"> <div class="cart-musics"> <ul class="cart-musics-ul"> <li v-for="(item, index) in cartMusics" :key="index"> {{item}} </li> <li class="last-page text-tblr-center" v-show="page > last_page"& ...

Posted by deansp2001 on Wed, 16 Oct 2019 11:35:08 -0700

Building multi page application with vue-cli 3

Create a project Hello World vue create hello-worldcd hello-worldnpm run serve Create a new page directory in src directory and a new page in pages directory App.vue and main.js are useless and can be deleted. The file name corresponds to the page name.   index.js import Vue from 'vue' import App from './index.vue' Vue.config. ...

Posted by michibk on Wed, 16 Oct 2019 11:05:42 -0700

Easy handling of "this" in JavaScript

Author: Dmitri PavlutinTranslator: Crazy Technology House Original text: https://dmitripavlutin.com/fi... Reproduction is strictly prohibited without permission I like the feature in JavaScript that can change the execution context of a function (also known as this). For example, you can use array methods on objects like arrays: const reduce = ...

Posted by doug007 on Mon, 14 Oct 2019 18:04:45 -0700

Introduction to Lodash and summary of the most commonly used methods

I. Introduction of Lodash: Lodash is a set of tool library, which encapsulates many processing functions for common data types, such as strings, arrays, objects and so on, to help developers reduce the difficulty of using JS. Introduction to Lodash: Take Vue-cli as an example: 1,yarn install lodash2. Introduce and use in main.js import _ from ' ...

Posted by rob_maguire on Mon, 14 Oct 2019 01:20:59 -0700

vue dynamic form

According to the requirement of the project, the data should be returned according to the background interface, and the form content should be added dynamically.   Description: This component is based on Ant Design of Vue   Six form controls are currently supported: Text Input, Text Area, Select Input, Select Multiple, Data Picker, and Data ...

Posted by aalmos on Sun, 13 Oct 2019 10:09:55 -0700

vue template syntax

Catalog: 1. interpolation 2. instruction 3. filter 4. Computing and listening attributes Because the knowledge explained in this section is relatively simple, it is mainly embodied in the code (comments) 1. interpolation <!DOCTYPE html> <html> <head> <meta charset="utf-8"> ...

Posted by andrewcb on Sun, 13 Oct 2019 07:53:20 -0700

Use Node+VueCli+ElemenetUI+MongoDB to teach you how to develop a comprehensive course website, including background management system

Use Node's hands to teach you how to write a tutorial website (follow the response style), including the front-end content and background management system, integration of Express framework and Monodb database server development; teach you how to use Vue.JS, ElementUI and iViewUI to write super beautiful pages. This project is originally create ...

Posted by jlr2k8 on Sun, 13 Oct 2019 04:22:20 -0700

Why can't the attribute binding label of v-if always be bound when the background data is displayed in vue-for?

Why can't the attribute binding label of v-if always be bound when the background data is displayed in vue-for? Servlet gets data from MySQL private void showComment(HttpServletRequest request, HttpServletResponse response) throws Exception { session = request.getSession(); //Get the ...

Posted by daveoliveruk on Sat, 12 Oct 2019 07:42:47 -0700