vue property binding and interaction

vue directive binding properties vue binds attributes by directive v-bind, src/width/height/title, such as v-bind:src='''can be abbreviated as: src=''', the same v-Bind:widthWait a moment, abbreviated as width,:height <script src="https://unpkg.com/vue/dist/vue.js"></script> <body> <div id="box"> <img v-bind:sr ...

Posted by info@ipfaces.org on Mon, 20 Jul 2020 09:12:34 -0700

vue+vuex+axios+echarts Draw a dynamically updated map of China

I. Build projects and install plug-ins # Install vue-cli npm install vue-cli -g # Initialize project vue init webpack china-map # Cut into Catalog cd china-map # Installation Project Dependency npm install # Install vuex npm install vuex --save # Install axios npm install axios --save # Install ECharts npm install echarts --save II. Pr ...

Posted by jimmyborofan on Mon, 20 Jul 2020 08:30:08 -0700

Crawl app photos with python

Download a fighting fish first (you can do it without downloading, the URLs are all here, right) Grab a json package by grabbing it and get the address below   Observed tests show that modifying offset values is equivalent to paging an app Accessing this url returns a large dictionary with two indexes, one error and one data.Data is another 20 ...

Posted by snowdog on Mon, 20 Jul 2020 08:02:20 -0700

java ajax instantly verifies that the same classification exists in the database

When I do the project again, the customer needs me to implement a function, probably when adding classifications, if the database has the same classifications, the jsp interface will prompt for information and cannot be added successfully.The results are as follows:   Below is the idea for implementation: 1. First implement an onblur event in ...

Posted by BLeez on Fri, 17 Jul 2020 09:02:47 -0700

vue loop resolving, custom filter, avoid flickering

* vue version 1.0 Repeated resolution of vue loop data v-for specifies that duplicate data will be deleted if duplicate data occurs during looping. vue1.0: Just add track-by="$index" <li v-for='value in arr'track-ty='$index'></li>where V-for loop goes vue2.0+: need to get index on v-for, for example: <li v-for='(val ...

Posted by sgtpepper on Thu, 16 Jul 2020 07:21:59 -0700

Beginner vue+webpack (front end of formal pit entry)1

1. Install firstNode.jsEnvironment Official Website Address https://nodejs.org/en/ Text editor chooses sublime text3 (vs is too big) 2. Establishing projects 2.1 Create a new project folder, code-x code number x plan, and put it on the desktop 2.2 Initialization cd c:\user\duab\desktop\code-x npm install -g vue-cli //Global Installation vue-c ...

Posted by BinaryDragon on Mon, 13 Jul 2020 08:02:55 -0700

Beginner vue+webpack (front end of formal pit entry)1

1. Install firstNode.jsEnvironment Official Website Address https://nodejs.org/en/ Text editor chooses sublime text3 (vs is too big) 2. Establishing projects 2.1 Create a new project folder, code-x code number x plan, and put it on the desktop 2.2 Initialization cd c:\user\duab\desktop\code-x npm install -g vue-cli //Global Installation vue-c ...

Posted by skehoe on Mon, 13 Jul 2020 08:03:31 -0700

Experience with async/await

Running Environment This method is supported above node7 This feature is supported above chrome55 and is typically used in node development Introduction to async Async is actually the syntax sugar of promise, a method marked by async that returns a promise object async is defined as follows: async function name([param[, param[, ... par ...

Posted by Tryweryn on Sun, 12 Jul 2020 08:13:59 -0700

3 sentences of code for adding lines dynamically

Use Front End MVVM FrameworkAvalon.js, 3 sentences of code to do the dynamic addition of lines. <!DOCTYPE html> <html> <head> <title>example</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> ...

Posted by warstormer on Sat, 11 Jul 2020 08:48:55 -0700

3 sentences of code for adding lines dynamically

Use Front End MVVM FrameworkAvalon.js, 3 sentences of code to do the dynamic addition of lines. <!DOCTYPE html> <html> <head> <title>example</title> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> ...

Posted by sglane on Sat, 11 Jul 2020 08:50:25 -0700