上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页
摘要: 阅读全文
posted @ 2021-06-19 22:57 juham 阅读(55) 评论(0) 推荐(0) 编辑
摘要: * 封装一个函数 mineReadFile 读取文件内容 * 参数: path 文件路径 * 返回: promise 对象 */ function mineReadFile(path){ return new Promise((resolve, reject) => { //读取文件 require 阅读全文
posted @ 2021-06-19 22:37 juham 阅读(65) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Promise 封 阅读全文
posted @ 2021-06-19 22:34 juham 阅读(15) 评论(0) 推荐(0) 编辑
摘要: // const fs = require('fs'); //回调函数 形式 // fs.readFile('./resource/content.txt', (err, data) => { // // 如果出错 则抛出错误 // if(err) throw err; // //输出文件内容 // 阅读全文
posted @ 2021-06-19 22:29 juham 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-06-19 18:00 juham 阅读(17) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>变量的解构赋值</ 阅读全文
posted @ 2021-06-17 11:47 juham 阅读(18) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>const 定义常 阅读全文
posted @ 2021-06-17 11:44 juham 阅读(53) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>let</titl 阅读全文
posted @ 2021-06-17 11:39 juham 阅读(52) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> .box1{ /* * 使用width来设置盒子内容区的宽度 * 使用height来设置盒子内容区的高度 * * 阅读全文
posted @ 2021-06-08 23:01 juham 阅读(32) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <style type="text/css"> .p1 { /* * text-transform可以用来设置文本的大小写 * 可选值: * none 默认值,该 阅读全文
posted @ 2021-06-08 22:53 juham 阅读(74) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 20 下一页