会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
兀笑
博客园
首页
新随笔
联系
管理
订阅
2020年6月23日
encodeURI
摘要: 利用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)
2020年6月22日
vue相同路由跳转强制刷新该路由组件
摘要: 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)
2020年5月24日
React中子组件无法进行路由跳转的问题
摘要: 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)
2020年5月23日
react --创建新项目(input的双向绑定 点击事件 this的指向 组件传值 类似vue的计算结果 类似vue路由 生命周期钩子方法)
该文被密码保护。
阅读全文
posted @ 2020-05-23 22:28 兀笑
阅读(0)
评论(0)
推荐(0)
2020年5月21日
react-redux
该文被密码保护。
阅读全文
posted @ 2020-05-21 08:41 兀笑
阅读(0)
评论(0)
推荐(0)
2020年5月14日
Nuxt.js -- 服务端渲染
摘要: 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)
2020年5月7日
经纬度位置获取navigator.geolocation.getCurrentPosition
摘要: 【H5】 经纬度位置获取navigator.geolocation.getCurrentPosition navigator.geolocation.getCurrentPosition( function(pos) { 成功 }, function(err) { 失败 }
阅读全文
posted @ 2020-05-07 10:29 兀笑
阅读(554)
评论(0)
推荐(0)
公告