上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 74 下一页
  2022年7月16日
摘要: 先新建一个文件夹作为工作区 然后用 VS Code 打开此文件夹,在终端 里输入命令: npm init -y 这时候文件夹下会自动生成 package.json ,打开它并添加到一行: “type":"module" 接下来,安装 express 和 mysql2 : npm i express 阅读全文
posted @ 2022-07-16 18:51 z5337 阅读(156) 评论(0) 推荐(0)
摘要: 图片来自 黑马程序员 免费视频 我们使用这样的代码来验证: 这段代码输出的结果是: A D C B console.log('A') thenFs.readFile('./files/1.txt','utf8').then(dataStr => { console.log('B') }) setTi 阅读全文
posted @ 2022-07-16 17:50 z5337 阅读(62) 评论(1) 推荐(0)
摘要: 如果在 function 中使用了 await ,则 function 前面要加上 async 修饰 async function getAllFiles(){ const r1 = await thenFs.readFile('./files/1.txt','utf8') console.log( 阅读全文
posted @ 2022-07-16 17:40 z5337 阅读(263) 评论(0) 推荐(0)
摘要: Promise 是 ES6 中的构造函数,可以 new Promise() new 出来的 Promise 实例对象,代表一个异步操作 在 Promise.prototype 上包含一个 .then() 方法,每一次 new Promise() 构造函数得到的实例对象,都可以 通过原型链的方式访问到 阅读全文
posted @ 2022-07-16 16:34 z5337 阅读(343) 评论(0) 推荐(0)
摘要: 1、默认导出(每个模块中,只允许唯一一次的 export default,否则会报错) export default 默认导出的成员 let n1 = 10 let n2 = 20 function show(){ } export default { n1, show } 2、默认导入 impor 阅读全文
posted @ 2022-07-16 15:44 z5337 阅读(63) 评论(0) 推荐(0)
摘要: 想试一下 Linux 的开发体验,不知道下载哪个版本合适,正好看到这篇文章: https://blog.csdn.net/snmper/article/details/125548023 https://docs.microsoft.com/zh-cn/windows/wsl/setup/envir 阅读全文
posted @ 2022-07-16 14:28 z5337 阅读(603) 评论(0) 推荐(0)
摘要: 下载最新的 node.js ,地址:https://nodejs.org/en/download/ 我下载的是 .msi 格式 使用 Win7 系统时,最新版本的 node.js 已不支持,需要下载历史版本 https://nodejs.org/download/release/v13.14.0/n 阅读全文
posted @ 2022-07-16 08:11 z5337 阅读(26) 评论(0) 推荐(0)
摘要: 转自:https://www.cnblogs.com/daguozb/p/10032169.html 未经测试 oracle数据库中表不小心drop删除怎么办 没有删过库的程序员怎么成长!!! 我手里几个项目搞得有点乱,前几天就不小心删掉了不该删除的数据库中的表。发现问题后一身冷汗啊。细思冷静后发现 阅读全文
posted @ 2022-07-16 00:24 z5337 阅读(191) 评论(0) 推荐(0)
  2022年6月24日
摘要: 这样写,能调试通,参考:https://blog.csdn.net/u013314786/article/details/85320754?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Ed 阅读全文
posted @ 2022-06-24 14:13 z5337 阅读(922) 评论(0) 推荐(0)
  2022年4月19日
摘要: 转自:https://www.cnblogs.com/joy2code/archive/2013/06/03/3114826.html 用虚拟并口解决向USB条码打印机发送ZPL指令的解决方案 上周遇到了一个问题,是关于条码打印的。我们的OA系统是几年前开发的,当时用到了条码打印,解决方案是在客户端 阅读全文
posted @ 2022-04-19 17:21 z5337 阅读(1562) 评论(1) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 74 下一页