当前位置:网站首页>Programming jump
Programming jump
2022-07-27 19:25:00 【Ashan classmate】
Programming jump
First, create a button and event and bind

Then we click the button, execute the code, and finally execute the jump
Full code :
<template>
<div>
<!-- Label jump -->
<h2> Label jump </h2>
<router-link to="/"> home page </router-link>
<router-link to="/helloword">helloword</router-link>
<router-link to="/about">about</router-link>
<br>
<!-- Programming jump -->
<h2> Programming jump </h2>
<button @click="gohelloword()">3s Then switch to hell oword</button>
<!-- Place holder : Replaced with the corresponding component -->
</div>
</template>
<script>
export default {
methods:{
gohelloword(){
var number =3;
console.log(this);
// I found it backstage router
// stay vue There are many in the object $ The properties of the beginning
// vue Its own attributes are all $ At the beginning
// Timer
setInterval(()=>{
number--;
console.log(number);
if(number==0) this.$router.push("/helloword");
},1000);
}
}
}
</script>
<style lang="scss" scoped>
</style>Last article :
边栏推荐
- MongoDB
- C语言案例:密码设置及登录> 明解getchar与scanf
- 利用 Fastjson json (简单粗暴版)
- Performance analysis of continuous time systems (2) - second order system performance improvement methods PID, PR
- Kettle learning - the repository configuration in version 8.2 is grayed out, and there is no connect button
- sql 时间处理(SQL SERVER\ORACLE)
- win10小技巧(1)——转移桌面位置
- Technology Summit 58 Liu Yuan in the same city was invited to attend qecon 2022 global software quality & effectiveness conference
- webservice的疑问
- How to break the team with automated testing
猜你喜欢

101. (cesium chapter) cesium particle system - snow

Down sampling - signal phase and aliasing

转行软测&跳槽到新公司,工作怎样快速上手?

Self control principle learning notes - system stability analysis (1) - BIBO stability and Routh criterion

Error analysis of building Alibaba cloud +typera+picgo map bed

Subscription and use of Alibaba cloud video on demand service

Selenium automated test interview questions family bucket

SQL field type conversion

Big enemies, how to correctly choose the intended enterprises in the new testing industry?

Selenium自动化测试面试题全家桶
随机推荐
阿里云视频点播服务的开通和使用
How can I get started quickly when I change my career to soft testing and job hopping to a new company?
PHP string operation
Sword finger offer17- print from 1 to the maximum n digits - Analog
Useful resources for ns2
Double insurance for line breaking
Kettle8.2 installation and common problems
图的遍历的定义以及深度优先搜索和广度优先搜索(二)
MySQL学习笔记(2)——存储过程与存储函数
[Luogu p4183] cow at large P (graph theory) (tree array)
Kettle consolidated record data reduction
转行软测&跳槽到新公司,工作怎样快速上手?
js常用utils封装
专项测试之「 性能测试」总结
Power control
Usage of ref keyword
Big enemies, how to correctly choose the intended enterprises in the new testing industry?
Selenium automated test interview questions family bucket
Win10 tips (1) -- transfer desktop location
Kettle references external scripts to complete phone number cleaning, de duplication and indentation
https://blog.csdn.net/weixin_50112395/article/details/124921571?spm=1001.2014.3001.5502