angular问题

1.使用路由功能时,chrome报错Uncaught SecurityError: Failed to execute 'replaceState' on 'History'。

原因,chrome在使用本地路径打开网页时禁止了所有H5 history的API。

解决办法,通过APACHE使用ip地址访问。

posted @ 2016-01-01 08:46  我是聪明慢  阅读(161)  评论(0编辑  收藏  举报