04 2024 档案
摘要:NETCORE - 全局异常处理(Exception) 环境:.net6 创建异常中间件:ExceptionHandlingMiddleware.cs using Microsoft.AspNetCore.Http; using System; using System.Collections.Ge
阅读全文
摘要:VUE - 使用h函数创建虚拟节点 1. 如在 antd 的 notification 组件中使用 参考文档:https://1x.antdv.com/components/notification-cn/ let h = this.$createElement; that.$notificatio
阅读全文
摘要:VUE - 给node_modules添加本地模块link 以o.js 为例。 一. 准备工作 1. 下载 o.js ,把插件包下载到 node_modules 下 yarn add o.js 2. package.json 中,删除 o.js 配置行 二. 添加本地模块 1. 在项目根目录下创建
阅读全文
摘要:VUE - bigint解决前端精度丢失的问题 问题描述 java后端long类型的范围 -2^63~2^63,即:-9223372036854775808~9223372036854775807,它是19位的。 这个数字可以通过方法获得:Long.MAX_VALUE、Long_MIN_VALUE。
阅读全文
摘要:VUE - vuex存储管理 1. 安装插件 yarn add vuex 2. 创建存储文件 在src目录下,创建 store 文件夹,创建 index.js import Vue from "vue"; import Vuex from "vuex"; Vue.use(Vuex); export
阅读全文