摘要: ES6模块化 模块化是指将一个大的程序文件,拆分成许多小的文件,然后将小文件组合起来 模块化的好处 模块的有事有以下几点: 1.防止命名冲突 2.代码复用 3.高维护性 模块化规范产品 ES6之间的模块化规范有: 1.CommonJS => NodeJs,Browseify 2.AMD => req 阅读全文
posted @ 2022-01-02 17:29 问某完红 阅读(31) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-01-02 16:44 问某完红 阅读(59) 评论(0) 推荐(0) 编辑
摘要: /** * 读取resource文件夹下个文件的内容: 1.html, 2.html, 3.html */ const fs = require("fs"); const util = require("util"); const mineReadFile = util.promisify(fs.r 阅读全文
posted @ 2022-01-02 16:43 问某完红 阅读(19) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-01-02 16:42 问某完红 阅读(22) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-01-02 16:41 问某完红 阅读(9) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-01-02 16:39 问某完红 阅读(245) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-01-02 16:38 问某完红 阅读(12) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-01-02 16:38 问某完红 阅读(32) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-01-02 16:36 问某完红 阅读(77) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content 阅读全文
posted @ 2022-01-02 16:36 问某完红 阅读(50) 评论(0) 推荐(0) 编辑