摘要: 目标效果图: 相关代码: const _historyEventList = [ { time: '1921年7月23日', event: '党的成立', }, { time: '1949年10月1日', event: '新中国成立', }, { time: '1978年12月18日', event 阅读全文
posted @ 2021-10-16 11:40 唐月慕卿 阅读(1386) 评论(0) 推荐(0) 编辑
摘要: error:Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 10.x 执行命令: npm rebuild node-sass --force 或 npm install 阅读全文
posted @ 2021-09-30 16:48 唐月慕卿 阅读(39) 评论(0) 推荐(0) 编辑
摘要: nodemailer.js //引入模块 nodemailer const nodemailer = require('nodemailer') const express = require('express'); const app = express(); const bodyParser = 阅读全文
posted @ 2021-09-30 16:41 唐月慕卿 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 本地搭建静态资源服务器 server.js 代码: var http = require('http'); var path = require('path'); var fs = require('fs'); var url = require('url'); var server = http. 阅读全文
posted @ 2021-08-23 18:01 唐月慕卿 阅读(9) 评论(0) 推荐(0) 编辑
摘要: // 获取本地ip const ip = (() => { let interfaces = require("os").networkInterfaces(); for (let devName in interfaces) { let iface = interfaces[devName]; f 阅读全文
posted @ 2021-08-23 17:52 唐月慕卿 阅读(92) 评论(0) 推荐(0) 编辑