- 博客(2)
- 收藏
- 关注
原创 编程式路由导航详解+个人理解
1. 作用不借助<router-link>实现路由跳转,让路由跳转更加灵活。(比如可以写在某个按钮中,点击按钮后实现路由的跳转)2. 具体编码//$router的两个API//一般情况下路由默认使用push。this.$router.push({ name:'xiangqing', params:{ id:xxx, tittle:xxx }})//如果不通过router,而是直接在路由组件中使用,就在router-link标
2022-01-23 19:24:17 466
原创 超级素数搜索问题
超级素数搜索问题程序代码:#include <stdio.h>#include <stdlib.h>#include <math.h>int IsPrime(long m){long i;//循环的次数long s=m-1;int t=0;if(s>0){for(i=2;i<=s;i++){if(m%i==0){//说明这个数字...
2019-05-28 10:48:46 566
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人