会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
xiiiiiimi
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
下一页
2020年4月21日
mac命令行修改node版本
摘要: 1、 npm install -g n (npm install -g n --force 或者用这个强制安装) 2、 安装node稳定版:n stable (sudo n stable) 安装任意版本: n 8.x( sudo n 8.x) 3、 查看node版本: node -v
阅读全文
posted @ 2020-04-21 19:30 xiiiiiimi
阅读(816)
评论(0)
推荐(0)
2020年1月14日
下载图片(vue 下载图片)
摘要: downloadImg(){ const url = this.imgUrl // window.open(_this.detail.imgUrl) let xmlhttp=new XMLHttpRequest(); xmlhttp.open("GET",url,true); xmlhttp.res
阅读全文
posted @ 2020-01-14 18:21 xiiiiiimi
阅读(793)
评论(0)
推荐(0)
2019年10月25日
【vue】 vue跳转页面:router-link/this.$router.push()
摘要: 1、通过标签<router-link> 2、通过方法 this.$router.push() html script
阅读全文
posted @ 2019-10-25 15:40 xiiiiiimi
阅读(2782)
评论(1)
推荐(0)
2019年10月17日
【vue】 router.beforeEach
摘要: import store from '@/store' const Vue = require('vue') const Router = require('vue-router') Vue.use(Router) const router = new Router({ scrollBehavior (to, from, savedPosition) { return {x: 0, y: 0} }
阅读全文
posted @ 2019-10-17 20:19 xiiiiiimi
阅读(818)
评论(0)
推荐(0)
2019年10月14日
【vue store的使用方法】(this.$store.state,this.$store.getters ,this.$store.dispatch ,this.$store.commit)
摘要: vue 页面文件 <template> <div> {{this.$store.state.count}}<br/> {{count}}<br/> {{this.$store.getters.changeCount}}<br/> <el-button type="primary" @click="a
阅读全文
posted @ 2019-10-14 11:10 xiiiiiimi
阅读(8039)
评论(0)
推荐(0)
2019年10月11日
【vue】axios + cookie + 跳转登录方法
摘要: axios 部分: cookie 部分: main.js 中引用:
阅读全文
posted @ 2019-10-11 11:13 xiiiiiimi
阅读(2040)
评论(0)
推荐(0)
2019年8月17日
【c++】零基础的自修课 01-开发工具的安装(code::blocks)
摘要: 1/开发工具的下载地址: ·(选用 visual studio开发工具,有区分mac和windows版本)https://visualstudio.microsoft.com/zh-hans/downloads/ ·(选用code::blocks ) Windows:https://blog.csd
阅读全文
posted @ 2019-08-17 11:28 xiiiiiimi
阅读(231)
评论(0)
推荐(0)
2019年5月22日
【js】子菜单吸顶(滚动到一定距离 容器置顶)附 无间断置顶 避免闪动
摘要: 思考逻辑:当向上滚动的高度>= 观察容器距离顶部高度 即可触发吸顶 以下代码在vue工程,作参考 记得在mounted 中加入监听事件 附赠无闪烁(噱头 哈哈哈) 其实就是给内容容器一个padding-top,然后将子菜单 相对定位在内容容器中。上面代码中观察容器选用 内容容器的className。
阅读全文
posted @ 2019-05-22 21:18 xiiiiiimi
阅读(1011)
评论(0)
推荐(0)
2019年5月13日
vue 无法热替换/热更新
摘要: 参考了小伙伴的解决办法: 1、https://blog.csdn.net/win7583362/article/details/65443291 虽然我并不是用对方的方法解决的。 依然还是建议大家打开学习一下,因为我是比较粗心的人,👆的小伙伴文章所讲的 也许会对你在某些点(我没有注意到的地方)有助
阅读全文
posted @ 2019-05-13 11:42 xiiiiiimi
阅读(3855)
评论(0)
推荐(0)
2019年4月8日
vue工程 使用滚动组件 vue2-better-scroll 实现上拉加载 下拉刷新
摘要: vue2-better-scroll 关于具体安装&使用过程 请移步api文档 已经很详细了 而且超清晰明了。 https://cnpmjs.org/package/vue2-better-scroll 也正是因为太简洁了 所以有了这篇补充贴 因为我项目使用了双语 因此 api文档没有给出如何动态设
阅读全文
posted @ 2019-04-08 22:01 xiiiiiimi
阅读(1570)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告