摘要:
// 加载网络请求模块 const http = require('http'); const fs = require('fs'); webRoot = 'C:/Users/gmbjzg/Desktop/JS/www' // 1.创建Web服务器 const cs = http.createSer 阅读全文
posted @ 2021-04-07 19:29
程序员陈师兄cxycsx
阅读(106)
评论(0)
推荐(0)
摘要:
js如果一行代码以( [ ```开头需要补; 示例代码如下: ;(function say(){ console.log("hello world") })() 阅读全文
posted @ 2021-04-07 16:37
程序员陈师兄cxycsx
阅读(53)
评论(0)
推荐(0)
摘要:
方法一 1.使用任意一款压缩软件压缩成zip或rar格式 2.cmd打开终端,执行下面这行命令 copy /b 美女.jpg + 小视频.zip target.jpg 说明:copy /b 图片 + 压缩文件 图片 3.删除后缀名,用解压软件解压 方法二 python代码 import os def 阅读全文
posted @ 2021-04-07 10:59
程序员陈师兄cxycsx
阅读(121)
评论(0)
推荐(0)
摘要:
1.一个类会生成一个字节码文件 2.public class 类名必须与java源文件名字一致 3.每一个class类都可以定义一个main方法 阅读全文
posted @ 2021-04-06 22:44
程序员陈师兄cxycsx
阅读(281)
评论(0)
推荐(0)
摘要:
1.什么是JDK? JDK是Java开发工具包 2.Java三大版本 JavaSE(标准版) JavaEE(企业版) JavaME(微型版) 3.Java语言特性 Java没有指针的概念, 没有多继承, 底层是C++实现的, 垃圾自动回收机制。 跨平台, 一次编译, 到处运行。 4.Java的加载与 阅读全文
posted @ 2021-04-06 20:33
程序员陈师兄cxycsx
阅读(180)
评论(0)
推荐(0)
摘要:
// 加载网络请求模块 const http = require('http'); const fs = require('fs'); // 1.创建Web服务器 const cs = http.createServer(); // 2.监听请求 cs.on('request', (request, 阅读全文
posted @ 2021-04-06 17:11
程序员陈师兄cxycsx
阅读(61)
评论(0)
推荐(0)
摘要:
1.核心模块 如:http、fs 2.第三方模块 如:request-promise 3.用户自定义模块 阅读全文
posted @ 2021-04-06 15:54
程序员陈师兄cxycsx
阅读(40)
评论(0)
推荐(0)
摘要:
// 加载文件模块 const fs = require('fs'); // 文件读取 fs.readFile('demo.txt', (error, data) => { console.log(error); // data是一个Buffer实例对象 console.log(data insta 阅读全文
posted @ 2021-04-06 14:25
程序员陈师兄cxycsx
阅读(68)
评论(0)
推荐(0)
摘要:
request-promise第三方模块目录结构 ─node_modules ├─bluebird │ └─js │ ├─browser │ └─release ├─lodash │ └─fp ├─psl │ ├─data │ └─dist ├─punycode ├─request-promise 阅读全文
posted @ 2021-04-05 23:44
程序员陈师兄cxycsx
阅读(855)
评论(0)
推荐(0)
摘要:
1.demo模块 let a = 1; let b = 7; // 对象导出的两种方式 // module.exports = { // a: a, // b: b // } exports exports.a = a; exports.b = b; 2.index.js const demo = 阅读全文
posted @ 2021-04-05 23:03
程序员陈师兄cxycsx
阅读(62)
评论(0)
推荐(0)
浙公网安备 33010602011771号