摘要: module.exports = { publicPath: '/', //项目的公共路径 devServer: { //开发用的服务器配置 proxy: { '/api': { target: 'http://localhost:8091', //这里是目标服务器地址 changeOrigin: 阅读全文
posted @ 2020-06-16 22:38 岱宗如何 阅读(1928) 评论(0) 推荐(0) 编辑
摘要: (function() { let myTool = { $: function(id) { return typeof id "string" ? document.getElementById(id) : null }, screenClient: function() { if (window 阅读全文
posted @ 2020-06-16 22:35 岱宗如何 阅读(186) 评论(0) 推荐(0) 编辑
摘要: html部分 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <style> body { padding: 0; margin: 0; } #progress { width:  阅读全文
posted @ 2020-06-16 22:33 岱宗如何 阅读(394) 评论(0) 推荐(0) 编辑
摘要: pc端购物网站的商品有些具有放大镜特效,自己简单实现了一下 html部分 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> <link rel="stylesheet" href=" 阅读全文
posted @ 2020-06-16 22:29 岱宗如何 阅读(373) 评论(0) 推荐(0) 编辑
摘要: html结构 <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>橱窗</title> <style> *{ padding: 0; margin: 0; list-style: none; border: no 阅读全文
posted @ 2020-06-16 22:23 岱宗如何 阅读(73) 评论(0) 推荐(0) 编辑
摘要: const mysql=require(`mysql`)module.exports.sqlpoll=function () { let pool={ config:{ host:`localhost`, user:`root`, password:`123`, port:3306, databas 阅读全文
posted @ 2020-06-16 22:16 岱宗如何 阅读(171) 评论(0) 推荐(0) 编辑
摘要: let mysql=require(`mysql`) //引入相应依赖module.exports={ //导出对象 // config:{ host:`localhost`, //主机名 user:'root', //用户名 password:`123`, //密码 port:3306, //端口 阅读全文
posted @ 2020-06-16 22:12 岱宗如何 阅读(789) 评论(0) 推荐(0) 编辑
摘要: const express=require(`express`)const morgan=require(`morgan`)const serveFavicon=require(`serve-favicon`)const bodyParser=require(`body-parser`)const 阅读全文
posted @ 2020-06-16 22:04 岱宗如何 阅读(174) 评论(0) 推荐(0) 编辑