摘要: 利用js的encodeURI()方法把数据转换成中文的编码var str = "哈哈“ str:encodeURI(str) console.log(encodeURI(str));\\%E5%93%88%E5%93%88 然后用decodeURI()方法解码 阅读全文
posted @ 2020-06-23 19:24 兀笑 阅读(173) 评论(0) 推荐(0)
摘要: vue相同路由跳转强制刷新该路由组件 在打开该菜单页面的情况下,再次点击菜单需要刷新该组件(销毁再创建) 1 this.$router.push({ 2 path:"/xxx", 3 query:{ 4 t:Date.now(), 5 }, 6 }); 在路由容器上绑定key值 1 <router- 阅读全文
posted @ 2020-06-22 19:15 兀笑 阅读(1540) 评论(0) 推荐(0)
摘要: 1、子组件引入withRouter2、跳转路由this.props.history.push(’/’);3、加入: export default withRouter(Title); import {withRouter} from "react-router-dom"; class Title e 阅读全文
posted @ 2020-05-24 21:06 兀笑 阅读(946) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2020-05-21 08:41 兀笑 阅读(0) 评论(0) 推荐(0)
摘要: 2016 年 10 月 25 日,zeit.co 背后的团队对外发布了 Next.js,一个 React 的服务端渲染应用框架。几小时后,与 Next.js 异曲同工,一个基于 Vue.js 的服务端渲染应用框架应运而生,我们称之为:Nuxt.js。 Nuxt.js 是什么? Nuxt.js 是一个 阅读全文
posted @ 2020-05-14 14:11 兀笑 阅读(179) 评论(0) 推荐(0)
摘要: 【H5】 经纬度位置获取navigator.geolocation.getCurrentPosition navigator.geolocation.getCurrentPosition( function(pos) { 成功 }, function(err) { 失败 } 阅读全文
posted @ 2020-05-07 10:29 兀笑 阅读(554) 评论(0) 推荐(0)