摘要:
目标效果图: 相关代码: const _historyEventList = [ { time: '1921年7月23日', event: '党的成立', }, { time: '1949年10月1日', event: '新中国成立', }, { time: '1978年12月18日', event 阅读全文
摘要:
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 阅读全文
摘要:
nodemailer.js //引入模块 nodemailer const nodemailer = require('nodemailer') const express = require('express'); const app = express(); const bodyParser = 阅读全文
摘要:
本地搭建静态资源服务器 server.js 代码: var http = require('http'); var path = require('path'); var fs = require('fs'); var url = require('url'); var server = http. 阅读全文
摘要:
// 获取本地ip const ip = (() => { let interfaces = require("os").networkInterfaces(); for (let devName in interfaces) { let iface = interfaces[devName]; f 阅读全文