上一页 1 2 3 4 5 6 ··· 11 下一页
  2023年2月22日
摘要: node 发送 html 邮件 安装 npm install nodemailer 新建 html 文件 ① 新建 views 目录下面新增 index.html(当然也可以使用其它目录结构,下面的代码中可以更改) 代码 ① 新建 send.js,代码如下: //send.js var nodema 阅读全文
posted @ 2023-02-22 17:31 随心的博客 阅读(227) 评论(0) 推荐(0)
  2022年5月17日
摘要: 1、安装xlsx npm install xlsx --save-dev 2、引入xlsx并封装读取excel方法 import * as XLSX from "xlsx"; /** * 读取excel内容 * @param {*} file * @returns */ export const r 阅读全文
posted @ 2022-05-17 18:01 随心的博客 阅读(1148) 评论(0) 推荐(0)
  2022年2月8日
摘要: const onImportExcel = (file) => { return new Promise(async (resolve, reject) => { ... //要执行的语句 return reject(false); //加上这个就会阻止默认上传 }); }; <Upload nam 阅读全文
posted @ 2022-02-08 18:15 随心的博客 阅读(2081) 评论(0) 推荐(0)
  2022年1月25日
摘要: 1、安装依赖(clean-webpack-plugin、add-asset-html-webpack-plugin、webpack-cli) yarn add clean-webpack-plugin add-asset-html-webpack-plugin webpack-cli -D 2、项目 阅读全文
posted @ 2022-01-25 10:12 随心的博客 阅读(573) 评论(0) 推荐(0)
  2021年12月7日
摘要: 1、删除源文件后,配置了gzip,当配置gzip删除源文件后,解决前端history问题,就会出现所有的都返回html,请求js、css也会返回html,页面会报错,如下配置即可 location / { root e:/build; index index.html index.htm; gzip 阅读全文
posted @ 2021-12-07 17:16 随心的博客 阅读(1995) 评论(0) 推荐(0)
  2021年10月21日
摘要: .env(项目根目录环境变量文件) PUBLIC_URL:http://cdn.com/ 阅读全文
posted @ 2021-10-21 14:57 随心的博客 阅读(485) 评论(0) 推荐(0)
  2021年9月29日
摘要: import React from "react"; function demo() { const FormConfig = { labelCol: { span: 8 }, wrapperCol: { span: 16 }, }; const [form] = Form.useForm(); c 阅读全文
posted @ 2021-09-29 09:01 随心的博客 阅读(6749) 评论(0) 推荐(0)
  2021年9月17日
摘要: @media only screen and (min-width: 320px) and (max-width: 359px) { html, body { font-size: 8.51px; } } @media only screen and (min-width: 360px) and ( 阅读全文
posted @ 2021-09-17 14:24 随心的博客 阅读(321) 评论(0) 推荐(0)
  2021年3月8日
摘要: 1、安装vite-plugin-style-import yarn add vite-plugin-style-import -D 2、在项目根目录下的vite.config.js中配置 import { defineConfig } from 'vite' import vue from '@vi 阅读全文
posted @ 2021-03-08 14:53 随心的博客 阅读(6575) 评论(0) 推荐(0)
  2021年2月24日
摘要: 一、原型链继承 function a() { this.speack = function () { console.log('第一个元素'); } } function b() { this.ask = function () { console.log('第二个元素'); } } b.proto 阅读全文
posted @ 2021-02-24 10:40 随心的博客 阅读(178) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 ··· 11 下一页