Drag function in vue

The requirement is simple. Drag the box or number to adjust the order. Following chart I. find the wheel I searched the Internet for a while and found a good plug-in—— vue-draggable II. Usage 1. installationnpm i -S vuedraggable2. Quotesimport draggable from 'vuedraggable'3. Realization of requirements <template> <div cl ...

Posted on Tue, 12 Nov 2019 11:03:17 -0500 by snaack

Summary of thread related knowledge points

1. Start mode of thread There are two kinds of opening: inherit Thread and implement cannable interface; Inherit Thread: public class Practice { public static void main(String[] args) { // Inherit Thread task: copy file Copy c = new Copy(); c.start(); } } class Copy extends Thread{ @Override public void run() { Fi ...

Posted on Tue, 12 Nov 2019 11:01:02 -0500 by wheelbarrow

Getting started with Ajax

1. What is ajax ajax is the abbreviation of technical terms: Asynchronous: asynchronous; JavaScript:JavaScript language; And: and, and; XML: data transfer format ajax is a client sending a request to the server over HTTP 2. Properties and methods of Ajax objects Attribute readyState: Ajax state code   ...

Posted on Tue, 12 Nov 2019 10:56:20 -0500 by Dracolas

Ubuntu rabbitmq installation and springboot integration

install rabbitMQ is written in erlang language. Install erlang first sudo apt-get install erlang-nox #installation is complete erl Next, add the public key wget -O- https://www.rabbitmq.com/rabbitmq-release-signing-key.asc | sudo apt-key add - Install rabbitMQ, and it will start automatically after installation sudo apt-get ...

Posted on Tue, 12 Nov 2019 10:49:55 -0500 by PHPHorizons

Four classic sorting algorithms in PHP

1. Bubble sorting In the set of numbers to be sorted, for the current sequence that has not been arranged, compare and adjust the two adjacent numbers from the front to the back in order to make the larger number sink and the smaller one rise. That is, whenever two adjacent numbers are compared and find that their sorting is opposite to the sor ...

Posted on Tue, 12 Nov 2019 10:21:35 -0500 by dellwoodbu

python self study journal 11 -- classes and objects

1. Write a function move? Rectangle to accept a rectangle object and two values, dx,dy. It should change the position of rectangle by adding the x coordinate of dx to corner and the y coordinate of Dy to corner Because this exercise involves many previous examples and exercises, if you don't write them out, you may not understand them, so write ...

Posted on Tue, 12 Nov 2019 10:20:31 -0500 by acke1976

vue-cli3 and element make a simple landing page

1. Create a project with vue-cli3 2. Install element module Global installation npm i element-ui -S 3. Introduce module in main.js import ElementUI from 'element-ui'; import 'element-ui/lib/theme-chalk/index.css';Vue.use(ElementUI); 4. Expand a small knowledge point here Find the scripts service in the package.json file, and add -- open to ...

Posted on Tue, 12 Nov 2019 10:18:18 -0500 by pelleas1022

Undirected graph under the storage structure of breadth first search adjacency table

Problem description Use adjacency table to store the undirected graph shown in the figure below, and use breadth first search to traverse all nodes on the undirected graph      Solving problems 1. Create an adjacency table to receive undirected graph information 2. Create a queue to accept the visited nodes 3. Starting from the vertex in ...

Posted on Tue, 12 Nov 2019 10:09:57 -0500 by meiamsome

CUDA Series II: adding vectors

This paper mainly introduces the implementation of the vector addition of cuda. This code is only for familiarizing with the concept and getting started with cuda, and the process is relatively simple. cuda c is easy to master, but it needs a lot of practice to master. Students who are interested in it need more practice. In th ...

Posted on Tue, 12 Nov 2019 10:04:13 -0500 by BLottman

Source code analysis of spring learning -- bean definition

BeanDefinition BeanDefinition is an interface that provides properties of beans defined by beanClassName, scope, lazyInit, etc. As can be seen from the following structure chart, there is an abstract subclass AbstractBeanDefinition and there are three types of subclasses, including GenericBeanDefinition (annotated GenericBeanDefinition and scan ...

Posted on Tue, 12 Nov 2019 09:58:48 -0500 by ashokkumar