gengyunfei13


  • published 1.0.1 3 years ago
  • ```js const fs = require("fs");

    published 2.0.6 4 years ago
  • ```js const fs = require("fs"); const path = require("path"); let str = ""; fs.readdirSync("src").forEach(pathname => { const realpath = path.join("src",pathname) if(path.extname(realpath) === ".js"){ str += fs.readFileSync(realpath)

    published 1.0.1 4 years ago
  • ```js const fs = require("fs"); const path = require("path"); const http = require("http"); const url = require("url"); const server = http.createServer((req,res) => { let pathname = url.parse(req.url,true).pathname; if(pathname === "/"){

    published 1.0.2 4 years ago
  • published 1.0.0 4 years ago
  • ```js

    published 1.0.0 4 years ago
  • ```js //fs.文件 const fs = require("fs"); const path = require("path"); const { Console } = require("console"); const copyDir = (source, target) => { fs.mkdirSync(target); fs.readdirSync(source).forEach((pathfile) => { const midSourc

    published 1.0.0 4 years ago
  • ```js //首页创建3个文件.txt 要同级关系

    published 1.0.0 4 years ago
  • ```js

    published 1.0.0 4 years ago
  • ```js // //第一步引入 // //引入压缩 // const htmlminify = require("gulp-html-minify"); // const gulp = require("gulp"); // console.log(gulp)

    published 1.0.1 4 years ago
  • ```js ///index.html 引入js文件 class Dialog { constructor() { this.create(); } create(){ this.dialog = document.createElement("div"); this.dialog.style = ` background: rgba(0, 0, 0, .7); w

    published 1.0.0 4 years ago
  • ```js const express = require("express");//引入 const app = express();// // app.use((req,res,next) => { // if(req.path === "/"){ // res.end("1233156464") // }else{ // next(); // } // }) // app.use((req,res,next) => { // if(r

    published 1.0.0 4 years ago
  • @ ```js //数据 ./mock/data.json [{"name": "zhangsan", "password": 123456}]

    published 1.0.0 4 years ago
  • ```js

    published 1.0.0 4 years ago
  • published 1.0.1 4 years ago
  • ````js //总共创建6文件 分别是 vscode mock node_modules public server views

    published 1.0.0 4 years ago
  • ```js //分页

    published 1.0.0 4 years ago
  • ```js //登录 //下载4个插件 init axios express mock //mock里面有2个 文件数据 data.js list.json //puolic文件下的有js文件夹 js里面有axios.js 和 axios.map //4个 html 文件

    published 1.0.0 4 years ago
  • ````js //app.js代码

    published 1.0.1 4 years ago
  • published 1.0.0 4 years ago
  • published 1.0.0 4 years ago
  • published 1.0.0 4 years ago
  • published 1.0.1 4 years ago
  • published 1.0.0 4 years ago
  • published 1.0.0 3 years ago
show more packages