react兼容ie8。。。

7 篇文章 0 订阅
1 篇文章 0 订阅

https://github.com/xcatliu/react-ie8

总之,各种需要降级

 

IE8 Support Version

 

    react <= 0.14.9
    react-dom <= 0.14.9
    react-router <= 2.3.0
    webpack = 1.15.0

修改package.json,报错

1.  npm 安装出现 UNMET DEPENDENCY 的解决方案

 

查了一下发现是跟旧版 npm 有关的问题: https://github.com/isaacs/npm/issues/1341#issuecomment-20634338

方案一

1

2

3

rm-rf node_modules/    # 删除已安装的模块

npm cache clean         # 清除 npm 内部缓存

npminstall            # 重新安装

方案二

1

2

3

rm-rf node_modules/    # 删除已安装的模块

sudonpm update -g npm  # 更新 npm

npminstall            # 重新安装

方案三

npm list 命令查看之后跑到缺失模块的目录下, 手动修复部分出错的模块:

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

$ npm list -g

D:UsersLsAppDataRoamingnpm

└─┬ express@3.4.8

  ├── buffer-crc32@0.2.1

  ├─┬ commander@1.3.2

  │ └── keypress@0.1.0

  ├─┬ connect@2.12.0

  │ ├── UNMET DEPENDENCY batch 0.5.0

  │ ├── UNMET DEPENDENCY bytes 0.2.1

  │ ├── UNMET DEPENDENCY multiparty 2.2.0

  │ ├── UNMET DEPENDENCY negotiator 0.3.0

  │ ├── UNMET DEPENDENCY pause 0.0.1

  │ ├── UNMET DEPENDENCY qs 0.6.6

  │ ├── UNMET DEPENDENCY raw-body 1.1.2

  │ └── uid2@0.0.3

  ├── cookie@0.1.0

  ├── cookie-signature@1.0.1

  ├── debug@0.7.4

  ├── fresh@0.2.0

  ├── merge-descriptors@0.0.1

  ├── methods@0.1.0

  ├── mkdirp@0.3.5

  ├── range-parser@0.0.4

  └─┬ send@0.1.4

    └── mime@1.2.11

 

npm ERR! missing: batch@0.5.0, required by connect@2.12.0

npm ERR! missing: qs@0.6.6, required by connect@2.12.0

npm ERR! missing: bytes@0.2.1, required by connect@2.12.0

npm ERR! missing: pause@0.0.1, required by connect@2.12.0

npm ERR! missing: raw-body@1.1.2, required by connect@2.12.0

npm ERR! missing: negotiator@0.3.0, required by connect@2.12.0

npm ERR! missing: multiparty@2.2.0, required by connect@2.12.0

npm ERR! not ok code 0

可以 cd 到具体出问题的模块目录下手动 npm install 重新安装也可以解决.

 

css 各浏览器兼容性前缀

前缀         浏览器

-webkit-      chrome、safari  /* Safari, 谷歌浏览器等使用Webkit引擎的浏览器 */

-moz-        firefox   /* 火狐等使用Mozilla浏览器引擎的浏览器 */

-ms-                         IE  /* Internet Explorer (不一定) */

-o-                           opera   /* Opera浏览器(早期) */

 

 

 

 

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值