摘要: 用户表sql:包括用户id,用户名,密码,昵称,性别,头像,生日,创建日期,更新日期等,其它字段可自行扩展 CREATE TABLE users ( id INT PRIMARY KEY AUTO_INCREMENT, // id 主键 自动增长 username VARCHAR(50) NOT N 阅读全文
posted @ 2023-04-27 14:02 阿jin 阅读(302) 评论(0) 推荐(0)
摘要: 效果如图 导入组件和图标 import { Select } from 'antd' import { ManOutlined, WomanOutlined } from '@ant-design/icons'; const { Option } = Select; 数据 let userListO 阅读全文
posted @ 2023-04-26 17:14 阿jin 阅读(1860) 评论(0) 推荐(0)
摘要: Array.isArray( ),该方法返回一个布尔值 let arr = [1,2,3] Array.isArray(arr) // true 使用 instanceof 运算符判断是否为数组 let arr = [1,2,3] arr instanceof Array // true 使用 Ob 阅读全文
posted @ 2023-04-25 15:56 阿jin 阅读(92) 评论(0) 推荐(0)
摘要: 业务需求:上传头像,上传完毕后拿到头像的url,把头像展示在页面中,最终把头像url和其他用户信息一起发送给服务器 上传头像流程 导入 Upload 组件和图标(一个加号,一个加载中) import { Upload } from 'antd'; import { PlusOutlined, Loa 阅读全文
posted @ 2023-04-22 14:48 阿jin 阅读(752) 评论(0) 推荐(0)
摘要: const { resolve } = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') module.exports = { entry: './src/index.js', output: { // 阅读全文
posted @ 2020-11-30 02:43 阿jin 阅读(54) 评论(0) 推荐(0)
摘要: const { resolve } = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') module.exports = { entry: './src/index.js', output: { // 阅读全文
posted @ 2020-11-30 02:34 阿jin 阅读(70) 评论(0) 推荐(0)
摘要: const HtmlWebpackPlugin = require('html-webpack-plugin') const {resolve} = require('path') /** * entry:入口起点 * 1. string --> './src/index.js' * 单入口 * 打 阅读全文
posted @ 2020-11-30 01:56 阿jin 阅读(62) 评论(0) 推荐(0)
摘要: webpack.dll.js /** * 使用dll技术,对某些库(第三方库:jquery、react、vue...)进行单独打包 * 当你运行 webpack 时,默认查找 webpack.config.js 配置文件 * 需求:需要运行 webpack.dll.js 文件 * --> webpa 阅读全文
posted @ 2020-11-30 00:50 阿jin 阅读(72) 评论(0) 推荐(0)
摘要: const { resolve } = require('path') const HtmlWebpackPlugin = require('html-webpack-plugin') module.exports = { entry: resolve(__dirname, 'src/js/inde 阅读全文
posted @ 2020-11-29 01:15 阿jin 阅读(49) 评论(0) 推荐(0)
摘要: const { resolve } = require('path'); const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const OptimizeCssAssetsWebpackPlugin = require(' 阅读全文
posted @ 2020-11-29 01:02 阿jin 阅读(61) 评论(0) 推荐(0)