vue the vue cycle function triggered by the timer cannot be cleared by clearTimeout. The event code is executed in sequence

Recently, I worked on a mobile project and encountered a demand: if there is no operation on the home page for 20 seconds, I will automatically exit and log in. Other pages have no operation for 20 seconds and automatically jump to the home page. The so-called no operation includes user behaviors such as click, touch and slide. This requir ...

Added by R4nk3d on Tue, 01 Feb 2022 07:08:10 +0200

Response processing - front and rear data interaction

elementary analysis: As we all know, in the front end of the front-end and back-end separation project, we use Jquery to realize ajax asynchronous request and data interaction with the back-end: that is, take the data from the front-end page and request it to the corresponding controller layer method, then the back-end processes the data reque ...

Added by nosti on Tue, 01 Feb 2022 05:49:10 +0200

Vue instruction usage

Vue download address: https://github.com/vuejs/vue (download and unzip it, and you can get the vue.js file in dist) Direct use of public CDN: <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script> Vue is a set of progressive framework for building user interface (you can selectively use one or some components of the ...

Added by g7pwx on Tue, 01 Feb 2022 02:47:20 +0200

css3 interesting transform deformation

In CSS3, the transform attribute is applied to the 2D or 3D conversion of elements. The transform function can be used to realize the four types of deformation processing of text or image rotation, scaling, tilting and movement Syntax: div{ transform: none|transform-functions; } The transform attribute can be specified as a keyword value ...

Added by nickholt1972 on Mon, 31 Jan 2022 23:21:38 +0200

How do I start anything NET Core Web API project

  catalogue introduce step Create a Web API project in Visual Studio Option 1 Option 2 IIS configuration Configure Swashbuckle/Swagger Add Swashbuckle Add newtonsoft Json Add exception service Set CORS policy Add authentication service Read Appsettings json (optional) add database context Optionally, add RestSharp (optional) fo ...

Added by nmpku on Mon, 31 Jan 2022 21:05:51 +0200

Explore the implementation logic of Vue3's keep alive and dynamic components

Keep alive component is a component provided by Vue. It can cache component instances and avoid component mounting and unloading in some cases. It is very practical in some scenarios. For example, we recently encountered a scenario in which a component uploads a large file is a time-consuming operation. If you switch to other page contents dur ...

Added by joe1986 on Mon, 31 Jan 2022 13:49:52 +0200

Consolidate JS optional (?.) Operation symbol, the original function can also be written in optional way, and learned again!

Author: Ashish Lahoti Translator: front end Xiaozhi Source: CSS tricket There are dreams and dry goods. Wechat search [Daqian world] pays attention to this dish washing wisdom who is still washing dishes in the early morning. This article GitHub https://github.com/qq449245884/xiaozhi It has been included. There are complete test sites, ...

Added by rimelta on Mon, 31 Jan 2022 11:50:03 +0200

Vue element UI learning notes-01

https://cn.vuejs.org/ 1, What is Vue 1. Introduction Vue (pronounced / vju: /, similar to view) is a progressive js framework for building user interfaces, which was released in February 2014. Unlike other large frameworks, Vue is designed to be applied layer by layer from bottom to top.Vue's core library only focuses on visual layers, which ...

Added by gnu2php on Mon, 31 Jan 2022 11:45:20 +0200

Express learning notes

Get started quickly a. Install express, currently using version 4.17. Enter the following command in the terminal: yarn add express b. Create an 'app JS' file, introduce express, create an Express instance, and listen to port 3000. //app.js const express = require('express'); const app = express(); app.listen(3000, () => { console. ...

Added by l_evans on Mon, 31 Jan 2022 11:32:40 +0200

What is the dynamic variable injection mentioned in Vue's ecological progress?

Author: Fernando Doglio Translator: front end Xiaozhi Source: medium There are dreams and dry goods. Wechat search [Daqian world] pays attention to this dish washing wisdom who is still washing dishes in the early morning. This article GitHub https://github.com/qq449245884/xiaozhi It has been included. There are complete test sites, mat ...

Added by xatter on Mon, 31 Jan 2022 09:07:03 +0200