Vue的生命周期函数,其实就是Vue开发者设定的一些hook钩子,你只要往hook里面编写代码,它就可以执行。如vue实例里的beforeCreate、created、mounted等,都是钩子。
但是你可能不知道,在Vue当中,触发钩子函数的时候,也会向父组件`$emit`一个事件,称之为`hoo... ...
分类:
其他好文 时间:
2020-05-10 10:54:47
阅读次数:
74
1.目的 1.加入login.jsp 2.加入如查错误,或找不到页面,就跳转到相应的页面,如404,500等 2.login.jsp <%-- Created by IntelliJ IDEA. User: Administrator Date: 2020-05-08 Time: 9:29 To c ...
分类:
其他好文 时间:
2020-05-09 10:34:36
阅读次数:
65
主要想说下非父子组件之间的通信。 项目场景:在app.vue里写了一个公共的顶部导航navbar,然后右侧有个分享按钮,而这个分享按钮只有在特定的页面才展示,项目里是在lottery.vue页面,然后想实现app.vue里点击分享按钮,触发lottery.vue里的分享方法。 解决:使用eventB ...
分类:
其他好文 时间:
2020-05-08 16:22:30
阅读次数:
61
There are lots of "tutorials" about promise in the internet. Recently I am studying the frontend code of SAP Cloud for Customer and I come across a re ...
分类:
其他好文 时间:
2020-05-07 22:58:06
阅读次数:
71
1 // 2 // Created by snnnow on 2020/5/5. 3 // 4 5 /* 6 * 马从横5条线,纵9条线的棋盘左下角往右上角跳(中国象棋) 7 * 问所有路径? 8 */ 9 // 10 //很明显是 dfs 呀 11 12 13 #include <bits/std ...
分类:
其他好文 时间:
2020-05-05 18:12:41
阅读次数:
55
1 // 2 // Created by Arc on 2020/5/5. 3 // 4 // 5 /* 6 * 题意大概就是,一个m*n的迷宫,0表示可通行,1表示不可通行,求一下有几种求法并写出路径 7 * 很明显的回溯 8 * 但这个题注意一个问题,就是走过一遍的地方要给标注上 9 * 10 ...
分类:
其他好文 时间:
2020-05-05 17:54:23
阅读次数:
67
Observability (18%) Defining a Pod’s Readiness and Liveness Probe Create a new Pod named hello with the image bonomat/nodejs-hello-world that exposes ...
分类:
其他好文 时间:
2020-05-05 17:37:59
阅读次数:
160
在idea中报: Can't finish Gitee sharing processSuccssully created project 'dmp' on Gitee. but initial commit failed: 并且在 Gitee 仓库 只有 .git 文件 . 解决办法: 1、在桌面 ...
分类:
其他好文 时间:
2020-05-04 17:51:26
阅读次数:
137
SpringMVC 入门 引入相关jar包或坐标 Spring context,spring web,spring webmvc,servlet api,jsp api 相应配置 创建web工程 在web.xml下做相应配置 在资源路径下配置springmvc.xml,需要开启spring的ioc注 ...
分类:
编程语言 时间:
2020-05-04 15:02:03
阅读次数:
66
7.5 Dealing with Return Values 7.5 处理返回值 For return values, you can also decide between returning by value or by reference. However, returning referen ...
分类:
其他好文 时间:
2020-05-03 17:01:23
阅读次数:
90