用hashhistory似乎会导致ie崩掉啊,怎么解决???
求各位大大帮助
React router用hashhistory的问题
JasonBai007
#4
我的怎么就没有崩溃掉?
这是展示链接:http://www.sharemyself.cc/react/
这是项目链接:https://github.com/JasonBai007/reactSPA
MRLYJ
#6
import { supportsHistory } from ‘history/lib/DOMUtils’;
const historyStrategy = supportsHistory() ? browserHistory : hashHistory;
先用这个判断浏览器支持哪种方式。
另外你也可以看https://github.com/ReactTraining/react-router/blob/4f2746155ce1cb6bd194864f9feb1599b2e46c51/docs/guides/Histories.md 希望可以帮到你,另外问题所在你再具体点,大家才好帮你解决