随笔分类 -  前端歌谣-node

上一页 1 ··· 3 4 5 6 7
前端歌谣-node
摘要:form.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title 阅读全文
posted @ 2022-09-02 21:49 前端导师歌谣 阅读(15) 评论(0) 推荐(0) 编辑
摘要:let http = require('http') let fs = require('fs') http.createServer((req,res)=>{ console.log("我来了"); console.log(req.url); res.end('index'); fs.readFi 阅读全文
posted @ 2022-09-02 21:49 前端导师歌谣 阅读(13) 评论(0) 推荐(0) 编辑
摘要:demo4.js exports.a=1; exports.b=2; let c=3; demo5.js const mod1=require('./demo4'); console.log(mod1.a); console.log(mod1.b); console.log(mod1.c); 阅读全文
posted @ 2022-09-02 21:49 前端导师歌谣 阅读(9) 评论(0) 推荐(0) 编辑
摘要:let fs = require('fs'); fs.readFile('./a.txt',(err,data)=>{ if(err){ console.log(err); }else{ console.log(data.toString()); } }) fs.writeFile('b.txt', 阅读全文
posted @ 2022-09-02 21:49 前端导师歌谣 阅读(14) 评论(0) 推荐(0) 编辑
摘要:let path = require('path'); //console.log(path.dirname('/node/a/b/c/1.jpg')); //console.log(path.basename('/node/a/b/c/1.jpg')); //console.log(path.ex 阅读全文
posted @ 2022-09-02 21:49 前端导师歌谣 阅读(21) 评论(0) 推荐(0) 编辑
摘要:let path = require('path'); console.log(path.dirname('/node/a/b/c/1.jpg')); console.log(path.basename('/node/a/b/c/1.jpg')); console.log(path.extname( 阅读全文
posted @ 2022-09-02 21:49 前端导师歌谣 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-09-02 21:49 前端导师歌谣 阅读(16) 评论(0) 推荐(0) 编辑
摘要:global.console.log('我是歌谣'); global.setTimeout(function() { console.log('123'); }, 2000) 阅读全文
posted @ 2022-09-02 21:49 前端导师歌谣 阅读(12) 评论(0) 推荐(0) 编辑
摘要:global.console.log('我是歌谣'); global.setTimeout(function() { console.log('123'); }, 2000) 阅读全文
posted @ 2022-09-02 21:49 前端导师歌谣 阅读(15) 评论(0) 推荐(0) 编辑
摘要:数据库相关概念 阅读全文
posted @ 2022-09-02 21:48 前端导师歌谣 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-09-02 21:48 前端导师歌谣 阅读(8) 评论(0) 推荐(0) 编辑
摘要://console.log(process.env); let num1=parseInt(process.argv[2]) let num2=parseInt(process.argv[3]) console.log(num1+num2); 阅读全文
posted @ 2022-08-26 20:34 前端导师歌谣 阅读(19) 评论(0) 推荐(0) 编辑
摘要:npm init 常见命令 阅读全文
posted @ 2022-08-26 20:34 前端导师歌谣 阅读(16) 评论(0) 推荐(0) 编辑
摘要:进入官网下载 node.js 建立一个文件夹 直接下一步,下一步 安装完成以后 win+r 安装完成 建立一个js文件 找到路径 运行 阅读全文
posted @ 2022-08-26 20:34 前端导师歌谣 阅读(10) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-08-26 20:34 前端导师歌谣 阅读(7) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-08-26 20:34 前端导师歌谣 阅读(15) 评论(0) 推荐(0) 编辑

上一页 1 ··· 3 4 5 6 7
点击右上角即可分享
微信分享提示