promise1.promise是解决异步的一种方案,也就是让promise帮我们去处理异步,最终promise会返回异步处理的结果。2.有了promise之后,让异步处理更加灵活,还能够解决之前的回调地狱的问题。promise的使用我们需要用promise帮我们处理异步vara=newPromise(function(resolve.reject){//在这里来进行真正的异步处理setTimeo
分类:
其他好文 时间:
2020-08-13 12:01:29
阅读次数:
53
错误 解决 导入import functools 在你写的装饰器里面将函数通过 @functools.wraps(执行函数名)装饰一下 ...
分类:
移动开发 时间:
2020-08-13 11:49:17
阅读次数:
73
Error running exam-web: Address localhost:1099 is already in use: 解决办法:在cmd中输入如下命令: netstat -aon | findstr 1099:找到被占用的pid taskkill -f -pid pid:终止 如图所示 ...
分类:
Web程序 时间:
2020-08-12 15:47:51
阅读次数:
76
<foreach collection="array" open="(" separator="," close=")" index="index" item="item"> #{item} </foreach> item:集合中元素迭代时的别名,该参数为必选。 index:在list和数组中,in ...
分类:
其他好文 时间:
2020-08-11 15:54:12
阅读次数:
65
背景 今天接口添加参数,想debug下,执行直接,500异常,发现是 mysql导致。 [2020-08-11 10:52:10,428] [ERROR] [1Sbq2ZvQpY4w534jNldTJI40ht0Dh42U] com.zaxxer.hikari.pool.HikariPool - H ...
分类:
数据库 时间:
2020-08-11 15:46:26
阅读次数:
77
1、进入root目录 cd ~ 2、建立.pip文件夹 mkdir .pip 3、进入.pip文件夹 cd .pip 4、编辑pip.conf文件 vi pip.conf [global] index-url = https://mirrors.aliyun.com/pypi/simple/ [in ...
分类:
其他好文 时间:
2020-08-11 13:09:19
阅读次数:
72
ORA-1034 ORA-27101 Table of Contents 1. 现象 2. 解决 1 现象 ERROR: ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist Linux-x86_6 ...
分类:
其他好文 时间:
2020-08-11 11:58:07
阅读次数:
90
进入第六关 简单判断过滤情况 <>script"'/ 查看源代码 可以看到第二个红框部分跟之前类似,闭合双引号尝试进行弹窗 "><script>alert(1)</script> 关键字被下划线分割了,尝试使用前一关的payload "><a href="javascript:alert(1)">h ...
分类:
其他好文 时间:
2020-08-11 10:39:30
阅读次数:
85
1、org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'helloController': Unsatisfied dependency expressed ...
分类:
数据库 时间:
2020-08-10 17:33:24
阅读次数:
260