Souleigh ✨ Souleigh ✨
4年前
React Hooks 快速上手
ReactHook快速上手一、Hook简介1.1Hook历史在ReactHook出现之前的版本中,组件主要分为两种:函数式组件和类组件。其中,函数式组件通常只考虑负责UI的渲染,没有自身的状态也没有业务逻辑代码,是一个纯函数。而类组件则不同,类组件有自己的内部
Stella981 Stella981
3年前
AndroidStudio 解决Android方法数超过65535的问题
1.引入依赖dependencies{compile'com.android.support:multidex:1.0.1'}2.启用配置defaultConfig{multiDexEnabledtrue}
Wesley13 Wesley13
3年前
JS为句柄添加监听函数
     具体谈如何实现JS为句柄添加监听函数之前先看一段代码,算是抛出这个问题。<html<head<titleJS为句柄添加监听函数</title<script    function message(){alert("hello!");}<
Stella981 Stella981
3年前
ElasticSearch快速搭建java项目
1.创建springboot项目Pom文件引入elasticsearch依赖<dependency<groupIdorg.springframework.boot</groupId<artifactIdspringbootstarterdataelasticsearch</artifactI
Stella981 Stella981
3年前
SpringBoot中使用rabbitmq,activemq消息队列和rest服务的调用
1\.activemq  首先引入依赖  pom.xml文件<dependency<groupIdorg.springframework.boot</groupId<artifactIdspringbootstarteractivemq</artifactId</depe
Wesley13 Wesley13
3年前
004. ES6之函数的扩展
1\.函数参数的默认值ES6允许为函数的参数设置默认值,functionlog(x,y'World'){console.log(x,y);}log('Hello')//HelloWorldlog('Hello','China')//HelloChina
Easter79 Easter79
3年前
SpringBoot中使用rabbitmq,activemq消息队列和rest服务的调用
1\.activemq  首先引入依赖  pom.xml文件<dependency<groupIdorg.springframework.boot</groupId<artifactIdspringbootstarteractivemq</artifactId</depe
Wesley13 Wesley13
3年前
Java函数结束时的内存回收坑
做树的题目时发现的。函数里面创建的实例,如果只是对参数赋值,是会被回收的。函数1publicstaticvoidcrete(TreeNodenode){2nodenewTreeNode(111);3}调用1TreeNodenodenull;
Wesley13 Wesley13
3年前
Java8 方法引用的使用
一、方法引用分类1.构造函数2.静态方法3.实例方法(类型)4.实例方法(对象)二、方法引用构造函数ClassName::new,示例:/@authorKevin@date20170124/pub
Stella981 Stella981
3年前
SpringBoot集成Spring Security(授权与认证)
⒈添加starter依赖1<dependency2<groupIdorg.springframework.boot</groupId3<artifactIdspringbootstarterweb</artifactId4