- 博客(16)
- 收藏
- 关注
原创 AntDesgin React input框输入的小写变大写
需求:用户在input框输入小写或者大写的字母都会转成大写。添加normalize属性具体用法:
2020-08-27 21:31:34
1798
原创 常用的js操作
/* 过滤 年龄小于24的 */ arr = this.arr.filter((item)=>{ return item.age>24 })/* 过滤的基础上 给每个对象新增school属性 */arr = arr.map((item,index)=>{ return Object.assign(item,{school:'sdju'+index}) })使用assign后,原始数据也发生了改变。这里是浅拷贝,浅拷贝共用同一个对象,深拷贝则新
2020-07-20 22:23:23
162
原创 React父子组件间传值
这里写自定义目录标题父传子传属性传方法子传父传属性完整代码父传子传属性父 constructor(props){ super(props); this.state = { name:"cyh", }; } <Child name={name}> 子 <span>hello{this.props.name}</span>传方法父 printName =()
2020-07-06 22:41:44
192
2
原创 linux上docker安装常用软件
MYSQL(1)拉取mysql镜像docker pull mysql:5.7(2)创建容器docker run -it -name=tensquare_mysql -p 33306:3306 -e MYSQL_ROOT_PASSWORD=123456 mysql使用mysql连接远程数据库报错2059 - authentication plugin 'caching_sha2_pa...
2020-04-27 18:07:20
278
原创 解决springboot和vue中的跨域问题
文章目录一.springboot1. 引入pom文件2. 配置application.yml3. config4. controller二. vue1.下载axios2.注册到main.js3.发起请求一.springboot1. 引入pom文件添加springboo和lombok依赖 <parent> <groupId>org.springfr...
2020-03-22 16:50:55
718
2
原创 多态---面试的时候好像一个都没做对
多态的要素:继承,重写,向上转型做题步骤this.show(o)---->super.show(o)----->this.show(super(o))---->super.show(super(o))以a.show(b)为例A a = new B();首先去找this.show(o)即 A.show(b),A类中不存在类B其次去找super.show(o)即A的父类...
2019-06-10 18:15:30
205
原创 乐优商城 status 404 reading GoodsClient
**进入断点第一次执行querySkuBySpuId没有出现问题,第二次发现id=195不存在(http://localhost:8081/sku/list?id=195),所以去看了下数据库。原来表tb_spu 之前修改过。可能数据不完整 所以就报错了。。删除掉自己添加的数据后没有报错。。。。特此记录防止踩坑**...
2019-04-05 21:17:42
441
原创 PathVariable与RequestParam区别
PathVariable与RequestParam区别链接http://localhost:8080/springmvc/hello/101?param1=10¶m2=20@RequestMapping("/hello/{id}") public String getDetails(@PathVariable(value="id") String id, @R...
2019-03-27 19:15:00
285
原创 tp5 图片上传到本地 及七牛云
上传到本地参考:https://www.jb51.net/article/119950.htm#comments上传到七牛云:环境composerhttps://docs.phpcomposer.com/00-intro.htmlthinkphp5https://www.cnblogs.com/wangliancomcn/p/10283603.html七牛云sdkhttps://...
2019-02-18 17:37:58
598
原创 php 用户登录与注销
之前虽然写过登录的功能,但是注销还没有认真的看过。特此记录当点击登录时,把用户账号信息以变量的形式存在定义的作用域(session)。session代表一次会话,只要你不关闭当前浏览器他的值就会存在,默认20分钟左右。// BisAccount变量名, $ret用户账号信息 ,赋值bis作用域session(‘BisAccount’, $ret, ‘bis’);// 删除 bis作用域...
2019-02-11 19:21:38
3097
1
原创 二级联动 layui+ajax
二级联动 layui+ajax这是第一次发布文章,主要是为了自己能够加强印象,同时也希望帮助到遇到困惑的朋友们。希望大家多多支持。大家先来看效果吧。数据库classify为0的是一级目录classify为1 对应id为1的国学故事layui中的html代码&lt;div class="layui-form-item"&gt; &lt;label class="layui-f...
2019-02-08 19:06:40
1636
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人