-
# ios的微信下面修改title不生效bug
同样是微信,安卓和ios的设置title会有非常大的区别,安卓系统的微信,只要调用document.title=“xxx”就可以轻松的改变页面的title,但ios系统不能,时好时坏的,非常不稳定;
通过百度,站在巨人的肩膀上,封装了一个简单的,针对修改微信title的工具
## 源码如下
``` javascript
$.extend($, …
mishe updated
6 years ago
-
-
以下mark MA切换react-router4过程中注意点
## 文档
https://github.com/react-translate-team/react-router-CN
https://reacttraining.cn/
## 库
使用了两个库
react-router 通用库,web 和 Native 都可用
react-router-dom web…
-
# 电话一面
- 项目介绍
- **React Vue的区别与联系**(这个问题在二面时深挖了一下,感觉自己还理解的不够彻底)
- setState的里的两个参数,各有什么形式(函数或者对象)和作用
- React的合成事件系统
- 事件委托的好处
- ES6用过哪些特性
- React的组件class中为啥要在constructor中使用bind对方法绑定上下文(diff时可…
-
Navigation routing changes can not change page changes of react.
导航的路由跳转不能改变react的页面跳转
-
[原文地址](https://github.com/joeyguo/blog/issues/2)
# 前端路由实现与 react-router 源码分析
在单页应用上,前端路由并不陌生。很多前端框架也会有独立开发或推荐配套使用的路由系统。那么,当我们在谈前端路由的时候,还可以谈些什么?本文将简要分析并实现一个的前端路由,并对 react-router 进行分析。
## 一个极简前端路由实…
-
hi,大家好!尽管官方已经提供了 `qiankun` 的 [demo](https://github.com/umijs/qiankun/tree/master/examples) 和[教程](https://qiankun.umijs.org/zh/guide/tutorial),但是覆盖面有限。比如说,qiankun 嵌套的使用、angular 作为主应用等,都没有可以参考的 demo。有不少…
-
Hello 👋
Sorry for the noob question, but I'm new to electron and I don't understand how the "backend" and "frontend" works compared to a regular web application.
I'm supposed to just drop the impo…
-
两部分来说:
客户端路由实现的思想:
基于 hash 的路由:通过监听 hashchange 事件,感知 hash 的变化
改变 hash 可以直接通过 location.hash=xxx
基于 H5 history 路由:
改变 url 可以通过 history.pushState 和 resplaceState 等,会将URL压入堆栈,同时能够应用 history.go() 等 …
-
- input事件
- change事件
- hashchange事件
- DOMContentLoaded事件 vs load事件
起源于对input的change事件的困惑,因此特地开一个issue记录遇到的浏览器事件。