会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
靥放
博客园
首页
新随笔
联系
订阅
管理
2018年11月19日
使用vue-router设置每个页面的title
摘要: https://blog.csdn.net/qq_24147051/article/details/76997838
阅读全文
posted @ 2018-11-19 10:38 靥放
阅读(219)
评论(0)
推荐(0)
2018年11月12日
node.js解决中文乱码问题
摘要: // 引入HTTP模块 let http = require("http") // 用http模块创建服务 /* req 获取URL信息 (request) res 浏览器返回响应信息 (response) */ http.createServer(function(req,res){ // 发送http头部 // HTTP状态值:200:OK // 设置HTTP头...
阅读全文
posted @ 2018-11-12 15:32 靥放
阅读(2759)
评论(0)
推荐(0)
2018年11月8日
Vue-cli proxyTable代理 解决开发环境的跨域问题
摘要: config文件夹里index.js中添加: 发请求文件ajax.js中添加: 原本填写地址的文件中config.js改为:
阅读全文
posted @ 2018-11-08 16:46 靥放
阅读(137)
评论(0)
推荐(0)
2018年9月4日
Vue缓存需要被缓存的页面
摘要: 需要缓存的页面代码 嵌套该组件的代码 router.js的代码
阅读全文
posted @ 2018-09-04 17:36 靥放
阅读(289)
评论(0)
推荐(0)
2018年7月26日
原生js动态添加script标签
摘要: var scriptElement = document.createElement('script'); document.body.appendChild(scriptElement); scriptElement.src = "https://static.mlinks.cc/scripts/dist/mlink.min.js"
阅读全文
posted @ 2018-07-26 15:29 靥放
阅读(1610)
评论(0)
推荐(0)
vue常用文档
摘要: 渲染函数 & JSX https://cn.vuejs.org/v2/guide/render-function.html 导航守卫 https://router.vuejs.org/zh/guide/advanced/navigation-guards.html#%E5%85%A8%E5%B1%8
阅读全文
posted @ 2018-07-26 15:26 靥放
阅读(203)
评论(0)
推荐(0)
vue 自定义组件 v-model双向绑定、 父子组件同步通信
摘要: 参考自:https://www.cnblogs.com/gsgs/p/7294160.html
阅读全文
posted @ 2018-07-26 14:47 靥放
阅读(1025)
评论(0)
推荐(0)
实现复制功能
摘要: 订单号:{{orderDetail.orderCode}}复制 copyOrderClick(){ this.$refs.copyOrderInput.select() document.execCommand("copy"); this.showCopy = true },
阅读全文
posted @ 2018-07-26 14:36 靥放
阅读(137)
评论(0)
推荐(0)
2018年7月25日
解决 vue路由跳转到新页面底部而不是顶部和后退到首页就不让他继续后退了
摘要: mounted () { this.$router.afterEach((to, from, next) => { window.scrollTo(0, 0); //跳到别的页面会自动滚动底部 }); history.pushState(null, null, document.URL); },
阅读全文
posted @ 2018-07-25 11:33 靥放
阅读(1537)
评论(0)
推荐(0)
解决iOS跳转页面被浏览器缓存不会自动刷新页面问题
摘要: 微信服务号开发时今日支付页面支付时iOS会出现当前链接还是上一个页面的链接导致微信支付失败,提示当前页面的url未注册,解决方案是判断如果是iOS的话进入该页面就自动刷新一遍。 路由文件index.js里: 支付页里:
阅读全文
posted @ 2018-07-25 11:16 靥放
阅读(788)
评论(0)
推荐(0)
下一页
公告