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
Gets the longest or shortest length of an element in a string array
There is a string array below:
string[] elements = {"adsf","etwert" ,"asdfasd","gs"};
The requirement is to get the longest or shortest length of the element.You can create an object in your program that has two attribute element values and element lengths:
class Class6
{
private string _ElementValue;
pub ...
Posted by lordtrini on Thu, 16 Jul 2020 07:35:02 -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
java Snake Skin Multithreading (Final Chapter)
Multithreaded synchronization
Take a bank for example
public class ThreadTest13 {
public static void main(String[] args) {
Account account=new Account("Call me God O(∩_∩)O",5000);
Thread t1=new Thread(new Processor(account));
Thread t2=new Thread(new Processor(account));
t1.start();
t2.start();
}
}
//Threads for withdrawal ...
Posted by r3drain on Tue, 14 Jul 2020 09:18:05 -0700
Android evokes app in many ways
Method 1 (aroused by Intent)
Our own app Code:
ComponentName componetName = new ComponentName(
"com.lh.jimtrency.webviewdemo",
"com.lh.jimtrency.webviewdemo.MainActivity");
//(package name of another application, Activity to start)
Bundle bundle = new Bundle();
ArrayList<String> strings=new ArrayLis ...
Posted by kaze on Tue, 14 Jul 2020 08:49:12 -0700
Chapter 7 Data Regulation: Cleanup, Conversion, Merge, Reshaping (4)
Chapter 7 Data Regulation: Cleanup, Conversion, Merge, Reshaping (4)
The source of ldata is not given in this chapter and is availableMacrodata.csvTurn out available data.
import pandas as pd
import numpy as np
import datetime ###Time processing later
from pandas import Series,DataFrame
###Read inMacrodata.csvfil ...
Posted by kumarrana on Tue, 07 Jul 2020 08:46:57 -0700
Chapter 7 Data Regulation: Cleanup, Conversion, Merge, Reshaping (4)
Chapter 7 Data Regulation: Cleanup, Conversion, Merge, Reshaping (4)
The source of ldata is not given in this chapter and is availableMacrodata.csvTurn out available data.
import pandas as pd
import numpy as np
import datetime ###Time processing later
from pandas import Series,DataFrame
###Read inMacrodata.csvfil ...
Posted by caedo on Tue, 07 Jul 2020 08:46:29 -0700
Vue source code analysis: the history of template compilation
In the last section, we talked about the general process of vue template analysis. In this section, we will elaborate on the specific content of template compilation? In fact, template compilation mainly includes html parsing and text parsing.
// Code location: src/complier/parser/index.js
/**
* C ...
Posted by littlejones on Tue, 30 Jun 2020 02:17:58 -0700
Vue source code analysis: the history of template compilation
In the last section, we talked about the general process of vue template analysis. In this section, we will elaborate on the specific content of template compilation? In fact, template compilation mainly includes html parsing and text parsing.
// Code location: src/complier/parser/index.js
/**
* C ...
Posted by Alka-Seltxer on Tue, 30 Jun 2020 02:02:36 -0700
js image lazy loading
js image lazy loading
Created by Marydon on 2018-04-14 08:15
1. Usage scenarios
When a large number of images need to be loaded on the web page, if all the images are loaded at one time, the loading time of the web page will be too long;
The web page itself has been very slow. If you need to quote ...
Posted by 182x on Tue, 30 Jun 2020 01:45:14 -0700