回调函数踩坑
摘要:在使用回调函数处理异步时,有时候会出现返回结果不及时的情况,下面记录一下自己踩到的坑以及解决方法。 首先看下面的这段代码有什么问题吗? js const mysql = require('mysql') // 创建链接对象 const con = mysql.createConnection({ h
        阅读全文
				
		posted @ 2020-04-01 15:42
		
		posted @ 2020-04-01 15:42
		
		posted @ 2020-03-31 21:02
		
		posted @ 2019-12-24 22:37
		
		posted @ 2019-12-24 22:33
		
		posted @ 2019-12-23 21:25
		
		posted @ 2019-12-23 08:05