1:对synchronized的理解: 1.1 :假设t1和t2并发,开始执行时肯定有先有后 1.2:假设t1先执行,看到synchronized这个时候自动找“后面的共享对象”的对象锁,找到后并占有锁,然后执行后面同步代码块,在程序执行过程一直都是占有这把锁,直到同步代码块结束,锁才释放。 1.3 ...
分类:
其他好文 时间:
2021-04-15 12:38:55
阅读次数:
0
addEventListener 有三个参数: 事件名称;事件处理函数;捕获还是冒泡。 事件处理函数不一定是函数,也可以是个JavaScript具有handleEvent方法的对象,看下例子: var o = { handleEvent: event => console.log(event) } ...
分类:
其他好文 时间:
2021-04-15 12:38:14
阅读次数:
0
一起学习jquery, 解决的办法是:使用button按钮,而不是submit按钮 看下面的例子 <title>用户修改密码</title> <script type="text/javascript" src="scripts/jquery-2.0.2.js"></script> <script ...
分类:
Web程序 时间:
2021-04-15 12:28:59
阅读次数:
0
属性名表达式 用途:允许表达式作为属性名、方法名,表达式需要写在方括号里 说明: 注意:属性名表达式时一个对象时,会自动将对象转为字符串 例子: let obj = { [propKey]: true, ['a' + 'bc']: 123 }; let obj = { ['h' + 'ello']( ...
分类:
其他好文 时间:
2021-04-15 12:18:28
阅读次数:
0
题目: Implement a function that receives two IPv4 addresses, and returns the number of addresses between them (including the first one, excluding the la ...
分类:
其他好文 时间:
2021-04-15 12:16:50
阅读次数:
0
#####效果:div内部swiper滑动时,外部div背景图片随着变化 ######思路:获取swiper的索引,用:style定义背景图片 //template //外部背景图片 <div class="cont-box" :style="{backgroundImage: 'url(' + b ...
分类:
其他好文 时间:
2021-04-15 11:59:42
阅读次数:
0
一.排序: 1.slice切片( ::-1) 2.reversed( ) 3.sorted( ,reverse=True)) 字母数字不可同时存在。默认为False升序,True降序。 4.filter(function,iterable) 二.常用 1.sum() 2.max() 3.min() ...
分类:
编程语言 时间:
2021-04-15 11:57:56
阅读次数:
0
远程调用出现json解析异常 操作失败,Error while extracting response for type [java.util.List<org.jeecg.modules.face.entity.FaceDevice>] and content type [application/ ...
分类:
编程语言 时间:
2021-04-14 12:42:30
阅读次数:
0
大量的等待事件,系统缓慢,从AWR看DBtime已经满负载了,主要等待事件如下 Enq: KO - Fast Object Checkpoint 占比DBTime的45%。通过ASH查询阻塞关系,等待该事件的用户SQL都被796会话阻塞,而该用户是CKPT进程。 SYS@orcl1>select s ...
分类:
其他好文 时间:
2021-04-14 12:38:41
阅读次数:
0
大量的等待事件,系统缓慢,从AWR看DBtime已经满负载了,主要等待事件如下 Enq: KO - Fast Object Checkpoint 占比DBTime的45%。通过ASH查询阻塞关系,等待该事件的用户SQL都被796会话阻塞,而该用户是CKPT进程。 SYS@orcl1>select s ...
分类:
其他好文 时间:
2021-04-14 12:37:28
阅读次数:
0