zhongjiayi

1,ie 10下实现水平垂直居中,不固定高度的话,正常的top:50%,left:50%,transform(translate(-50%,-50%)) 是不能实现的,ie下top:50%会失去效果。

解决方案:

top:inherit

  

2.axios在ie下进行get请求时,会出现有缓存的现象,数据更新后自动从缓存中调取数据,失去实时更新的效果

解决方案:在axios的get的请求头中加入:

axios.defaults.headers.get['Cache-Control'] = 'no-cache'
axios.defaults.headers.get['Pragma'] = 'no-cache'

  待更新。

分类:

技术点:

相关文章:

  • 2021-09-02
  • 2021-10-19
  • 2021-10-27
  • 2021-10-09
  • 2021-05-01
  • 2021-04-02
  • 2021-12-03
猜你喜欢
  • 2021-08-19
  • 2021-12-24
  • 2021-12-18
  • 2021-05-08
  • 2021-10-17
  • 2021-11-30
  • 2021-12-18
相关资源
相似解决方案