一、回调 回调函数 当一个函数A作为参数,传入另一个函数B中,某种情况下执行,作为参数的函数A,叫回调函数 用处: 获取异步的数据 获取将来的数据 回调地狱 当回调函数嵌套过多时 格式混乱,不方便程序调试 浪费性能 回调地狱解决了什么问题 多层异步,嵌套的问题 更好的解决方式 不产生回调地狱,实现多 ...
分类:
Web程序 时间:
2020-06-15 09:45:32
阅读次数:
73
window10系统,先cmd打开chrome, chrome --remote-debugging-port=9222 执行脚本 from selenium import webdriver from selenium.webdriver.chrome.options import Options ...
分类:
其他好文 时间:
2020-06-14 16:32:39
阅读次数:
221
[ERROR] Failed to execute goal on project activiti-bpmn-layout: Could not resolve dependencies for project org.activiti:activiti-bpmn-layout:jar:6.0.1 ...
分类:
编程语言 时间:
2020-06-14 13:11:17
阅读次数:
300
微信小程序-请求、接口拦截 请求拦截request.js 下面分享一下微信小程序的接口拦截 //HTTPS_HOST 接口地址。 const HTTPS_HOST = "https://www.baidu.com/wechat" function dealResult(res, resolve, r ...
分类:
微信 时间:
2020-06-13 21:22:06
阅读次数:
129
今天工作遇到个关于Promise的小问题,结果是自己太新手,后来解决了 如 function test() { return new Promise (resolve, reject) { reject('超时') } } 使用了await, 必须catch才能让阻塞放开 async functio ...
分类:
其他好文 时间:
2020-06-13 19:29:17
阅读次数:
68
背景 我们在需要保证代码在多个异步处理之后执行,我们通常会使用 Promise.all(promises: []).then(fun: function); Promise.all可以保证,promises数组中所有promise对象都达到resolve状态,才执行then回调 那么会出现的情况是, ...
分类:
其他好文 时间:
2020-06-13 13:16:16
阅读次数:
121
今天学习springboot框架的使用,IDEA里一个service的注解报错“Cannot resolve symbol service”。 搜索了很多方法,解决办法是选择file,然后再选择Invalidate Caches/Restart清除缓存并重启IDEA就好了。 原博地址https:// ...
分类:
其他好文 时间:
2020-06-13 12:58:04
阅读次数:
696
构建项目时报错: Cannot resolve com.gexin.platform:gexin-rp-sdk-http:4.1.1.4 gexin-rp-sdk-http:jar:4.1.1.4总是无法下载,百度到的处理方法,记录一下,方便以后查询使用。 解决方式: 修改本地maven/confi ...
分类:
其他好文 时间:
2020-06-13 12:52:38
阅读次数:
346
docker-compose gives ERROR: Cannot locate specified Dockerfile: Dockerfile Here is how to specify dockerfile. Sorry I cannot do it in comments as form ...
分类:
其他好文 时间:
2020-06-12 19:55:52
阅读次数:
209
一、Sparksql隐式转换时异常描述 Cannot create encoder for Option of Product type, because Product type is represented as a row, and the entire row can not be null ...
分类:
数据库 时间:
2020-06-12 14:59:06
阅读次数:
120