两个页面之间的跳转如果需要传参(例如需要传递当前的id),js里写 window.location.href="xxxxx?id=xx 就可以了;但是vue不一样 需要操作的是路由,需要用到 VueRouter使用之前首先要了解 $router和$route $router是一个VueRouter的 ...
分类:
其他好文 时间:
2021-01-04 10:33:13
阅读次数:
0
2020-12-30 02:07:45.802 15260-15260/com.uudon.enation E/AndroidRuntime: FATAL EXCEPTION: main Process: com.uudon.enation, PID: 15260 java.lang.NoSuchM ...
分类:
编程语言 时间:
2021-01-04 10:32:44
阅读次数:
0
Router基本使用 基本使用步骤 引入相关的库文件 添加路由链接 添加路由填充位 定义路由的组件 配置路由规则并创建路由实例 把路由挂载到Vue根实例中 引入相关库文件 <!-- 导入 vue 文件,为全局 window 对象挂载 Vue 构造函数 --><script scr='./lib/vu ...
分类:
其他好文 时间:
2021-01-02 11:43:47
阅读次数:
0
public static void main(String[] args) throws APIConnectionException, APIRequestException { pushNotice("","baojing","网页内容","网页标题"); } private static f ...
分类:
其他好文 时间:
2021-01-02 11:07:26
阅读次数:
0
在静态方法和非静态方法上加 Synchronized的区别 非静态方法 class Test{ public synchronized void test() { } } 等价于 class Test{ public void test() { synchronized(this) { } } } ...
分类:
其他好文 时间:
2021-01-02 10:52:47
阅读次数:
0
public class EnumTest { public static void main(String[] args) { Size s=Size.SMALL; Size t=Size.LARGE; //s和t引用同一个对象? System.out.println(s==t); // //是原 ...
分类:
其他好文 时间:
2021-01-02 10:48:34
阅读次数:
0
public static void main(String[] args) { //打印三角形 5行 for (int i = 1; i <= 5; i++) { for (int j=5;j>=i;j--){ System.out.print(" "); } for (int j = 1; j ...
分类:
其他好文 时间:
2021-01-02 10:29:54
阅读次数:
0
1、使用vue-router跳转了路由之后刷新,出现Cannot GET /xxx 的情况 前端路由有两种,一种是hash模式,一种是history模式。 hash模式使用URL的hash来模拟一个完整的URL,当URL改变时,页面不会重新加载,url会带有 # ,但是在路由中刷新可以正常显示,浏览 ...
分类:
其他好文 时间:
2021-01-02 10:28:59
阅读次数:
0
java 程序中测试两个变量是否相等有两种方法: == equals()方法 当使用==判断两个变量是否相等时,如果两个变量是基本类型变量,且都是数值类型(不一定要求数据类型严格相同),则只要两个变量的值相等时,才会返回true public class m{ 10 public static vo ...
分类:
编程语言 时间:
2021-01-02 10:28:43
阅读次数:
0
/** * 自定义简易版Promise * */ class EasyPromise { static resolveCbStatic = undefined; // 供EasyPromise.all等静态方法使用 static rejectCbStatic = undefined; // 供Eas ...
分类:
其他好文 时间:
2021-01-01 12:43:23
阅读次数:
0