自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(8)
  • 收藏
  • 关注

原创 java连接mysql数据库

使用vue脚手架搭建项目,在项目根目录中创建vue.config.js文件 // vue.config.js module.exports = { devServer: { proxy: { '/api': { target: url, // 后端接口路径 changOrigin: true, // 是否允许跨域 pathRewrite: { '^/api': '' // 路径重写 }

2021-10-30 19:55:21 90

原创 在vue项目中监听电脑网络的状态

app.vue data () { return { onLine: navigator.onLine // navigator.onLine 获取设备是否可以上网、连接网络 } }, created () { // 监听网络 // 网络由异常到正常时触发 window.addEventListener('online', this.updateOnlineStatus) // 网络由正常到异常触发 window.addEven

2021-09-29 10:16:37 1658 4

原创 vscode前端开发必备插件

HTML CSS Support HTML Snippets JavaScript (ES6) code snippets JavaScript and TypeScript Nightly Auto Close Tag Auto Rename Tag Bracket Pair Colorizer GitLens — Git supercharged vue Vetur Vue VSCode Snippets Path Intellisense Hipster Theme Mate

2021-09-15 13:46:49 207

原创 推荐一款vscode的主题插件

这款主题好好看,很干净,看起来很舒服 上链接: Hipster Theme - Visual Studio Marketplace Extension for Visual Studio Code - A very colorful theme inspired by Atom's Hipster theme.https://marketplace.visualstudio.com/items?itemName=ModoNoob.vscode-hipster-theme ...

2021-09-15 13:31:55 137

原创 vue项目中解决路由重复点击报错问题

router.js中写入 import导入代码下面加入 constprototypePush=VueRouter.prototype.push VueRouter.prototype.push=functionpush(location){ returnprototypePush.call(this,location).catch(err=>err) }

2021-09-15 11:49:43 121

原创 vscode设置好看的编程字体

vscode中点击菜单栏文件选项,选择首选项点击设置,之后选右上角按钮打开设置(json) { "editor.fontFamily": "Fira Code", // 字体名称 "editor.fontLigatures": true, // 是否为连体字 "editor.fontSize": 14, // 字体大小 "editor.fontWeight": "normal" // 控制字体粗细 } ...

2021-09-15 11:45:32 4668

原创 vue项目中使用webSocket

项目全局封装webSocket // 引入webScoket包 import SockJs from 'sockjs-client' // 创建一个socket类并抛出 export default class Socket { constructor (param = {}) { this.param = param this.reconnectCount = 0 this.socket = null this.taskRemindInterval = null

2021-09-15 11:38:15 771

原创 vue项目中使用http-proxy-middleware代理解决浏览器跨域问题

使用vue脚手架搭建项目,在项目根目录中创建vue.config.js文件 // vue.config.js module.exports = { devServer: { proxy: { '/api': { target: url, // 后端接口路径 changOrigin: true, // 是否允许跨域 pathRewrite: { '^/api': '' // 路径重写 }

2021-09-15 11:33:59 438

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除