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
Configuration and use of webpack dev server
Continue with the previous one https://www.cnblogs.com/chenyingying0/p/12797474.html
Install webpack dev server
cnpm i sebpack-dev-server
Modify package.json
Because the syntax of configuring environment variables on different platforms (such as windows and mac) is different, in order to write in a way compatible with multiple platform ...
Posted by hadeosdin on Wed, 29 Apr 2020 07:06:48 -0700
Front end routing (history+hash)
Blog address changed before, republish!
In traditional website development, we usually use technologies such as asp, php and jsp to develop. After the development is completed, we will deploy them on the server. When we visit, we will send them with '. asp', '. php' in the browser, For url requests with suffix paths such as'. jsp ', the server ...
Posted by maybl8r03 on Tue, 28 Apr 2020 23:08:35 -0700
The usage of forEach, for in, for of loop in js
1, General method of traversing array:
var array = [1,2,3,4,5,6,7];
for (var i = 0; i < array.length; i) {
console.log(i,array[i]);
}
2, Traversing arrays with the square of for in
for(let index in array) {
console.log(index,array[index]);
};
3, forEach
array.forEach(v=>{
...
Posted by dhcrusoe on Sun, 26 Apr 2020 23:54:59 -0700
Play Django 2.0 --- Django notes foundation 11 (music website development)
11.5 song Leaderboard
The song leaderboard is accessed through the navigation link on the home page and displayed in descending order according to the number of songs played. From the design diagram of the leaderboard page, we can see that the web page has three functions: search at the top of the web page, song classification and filtering, a ...
Posted by damisi on Sun, 26 Apr 2020 20:24:08 -0700
Challenge the funniest Vuex series of tutorials in the whole network: Lecture 5: little helper of Vuex
Two sentences first
I've talked about the State, Getter, rotation and Action under Vuex. I don't know if you understand. Of course, if you want to master it skillfully, you need continuous practice and hands-on practice.
In fact, as long as the four carriages are mastered, there will be no problem in dealing with some small and medium-sized pro ...
Posted by kilbey1 on Sun, 26 Apr 2020 19:00:04 -0700
How to create JS objects
1, Literal measure
var obj = {
name: 'mm',
age: 18,
sayName: function() {
console.log(this.name);
}
}
Problem: creating multiple objects can cause code redundancy and take up a lot of memory space.
2, Factory mode
function createToy(name) {
var o = new Object();
o.name = name;
o.say = function() {
co ...
Posted by Tyche on Sat, 25 Apr 2020 07:04:32 -0700
C ා development BIMFACE series 39 web page integrated development 3: 3D model comparison in drawing review system
Series catalog [the latest development article has been updated, click to view details]
In the construction drawing review system, the designer submits the designed model / drawing, and the review expert reviews the model / drawing. If any non-compliance is found during the review, the process shall be returned to the design unit, and the ...
Posted by tcollie on Thu, 23 Apr 2020 22:20:34 -0700
Read the Lodash source code -- compact.js
There is a general sky Gang number, which changes in thirty-six ways; there is a general evil number, which changes in seventy-two ways -- "journey to the west"
Compact.js
Lodash second api_.compact(array)
It means to delete all the values in the array that can be converted to false through Boolean values, such as null, false, '', 0 ...
Posted by BoukeBuffel on Wed, 22 Apr 2020 08:34:51 -0700