下图展示了实例的生命周期,官网提供,但需要理解。 先说下生命周期的几个钩子,说白了就是初始化vue的过程中,每完成一些事情就会调用一下对应的钩子函数让用户做自己想做的事情,钩子函数主要有 以上表格为vue生命周期的主要钩子函数;每个钩子前后到底做了哪些事情?及我们可以在对应钩子中做啥?一直是我的疑问 ...
分类:
其他好文 时间:
2019-11-24 11:31:17
阅读次数:
54
第十五章 使用Canvas绘图 HTML5添加的<canvas>元素负责在页面中设定一个区域,然后就可以通过JavaScript动态地在这个区域中绘制图形。 如:<canvas id="drawing" width=" 200" height="200">A drawing of something ...
分类:
其他好文 时间:
2019-11-23 23:44:31
阅读次数:
82
#include <stdio.h> void swap(int *x,int *y); int main() { int m,n; scanf("%d%d",&m,&n); printf("before swap:m=%d n=%d\n",m,n); swap(&m,&n); //注意引用函数,两 ...
分类:
其他好文 时间:
2019-11-23 20:11:16
阅读次数:
79
目的: 1.Java注解简介 2.Java元注解(重点) 3.自定义注解 案例一(获取类与方法上的注解值) 案例二(获取类属性上的注解属性值) 案例三(获取参数修饰注解对应的属性值) 4.Aop自定义注解的应用(重点) Java注解简介 1. Java注解(Annotation) Java注解是附加 ...
分类:
编程语言 时间:
2019-11-23 19:45:02
阅读次数:
61
概述 主要是通过 @RunWith 和 @SpringBootTest 注解来开启单元测试功能 package com.snake.hello.spring.boot; import org.junit.Before; import org.junit.Test; import org.junit. ...
分类:
编程语言 时间:
2019-11-23 09:41:07
阅读次数:
62
直接上代码。 <template> <div> <el-upload action="http://localhost:3000/picture" :http-request = "getimages" :before-upload = "beforeUp" :headers="headers" l ...
分类:
Web程序 时间:
2019-11-22 23:31:12
阅读次数:
138
AOP的本质还是动态代理对方法调用进行增强。 SpringBoot 提供了方便的注解实现自定义切面Aspect。 1、使用需要了解的几个概念: 切面、@Aspect 切点、@Pointcut、 通知、@Before/@After/@Around/@AfterReturning/@AfterThrow ...
分类:
编程语言 时间:
2019-11-22 13:31:39
阅读次数:
140
臣亮言:先帝创业未半而中道崩殂, Permit me to observe: the late emperor was taken from us before he could finish his life`s work, the restoration of Han. 今天下三分,益州疲弊,此 ...
分类:
其他好文 时间:
2019-11-21 13:48:00
阅读次数:
63
原题链接在这里:https://leetcode.com/problems/missing-element-in-sorted-array/ 题目: Given a sorted array A of unique numbers, find the K-th missing number star ...
分类:
其他好文 时间:
2019-11-21 09:55:39
阅读次数:
96