![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
dva
圥忈&&丅佽&&扗虖
这个作者很懒,什么都没留下…
展开
-
浏览器控制台 console 保存输出文件
JS代码(function (console) { console.save = function (data, filename) { let MIME_TYPE = "text/json"; if (!data) return; if (!filename) filename = "console.json"; if (typeof data === "object") data = JSON.stringify(data, nu转载 2022-03-20 09:12:17 · 1313 阅读 · 0 评论 -
页面背景网址
https://vue-particles.netlify.app/https://www.vantajs.com/原创 2021-10-06 22:38:02 · 91 阅读 · 0 评论 -
Expected ‘===‘ and instead saw ‘==‘报错
解决方法很简单在报错的内容后添加注释 // eslint-disable-line就可以解决了例如:解决:原创 2021-08-12 12:27:20 · 1042 阅读 · 0 评论 -
.gitignore (忽略文件配置)
一些常见的 .gitignore 配置# Compiled source # #编译源####################*.com*.class*.dll*.exe*.o*.so# Packages # #包 ############## it's better to unpack these files and commit the raw source #最好解压这些文件并提交原始源代码# git has its own built in compression meth原创 2021-08-06 10:08:37 · 100 阅读 · 0 评论 -
dva.js 的 React项目挂载全局的服务器变量
在 .webpackrc.js 配置const path = require('path');export default { externals: { // 挂在全局ip地址 'Config': JSON.stringify(process.env.ENV === 'production' ? { // serverUrl: "http://192.168.0.117:7001", serverUrl: "http://localhost:7001",.原创 2021-07-31 20:38:38 · 333 阅读 · 0 评论 -
Warning: React version not specified in eslint-plugin-react settings.
问题Warning: React version not specified in eslint-plugin-react settings.方法找到 .eslintrc 文件{ "extends": "umi", "settings": { "react": { "version": "999.999.999" } }}即可解决原创 2021-07-31 15:25:46 · 197 阅读 · 0 评论 -
引入dva后一直存在一个warning:Please use `require(“history“).createHashHistory` instead of ......
报错信息解决方案:找到node_modules中的dva包修改lib/index.js里面找到var _createHashHistory = _interopRequireDefault(require("history/createHashHistory"));修改为:var _createHashHistory = _interopRequireDefault(require("history").createHashHistory);关闭编译器和服务 重新启动就好了.原创 2021-07-30 20:38:05 · 188 阅读 · 0 评论