lucy

Results 1 issues of lucy

1.我首先用npm install mockjs在项目里安装了mock 2.在组件里面用import * as Mock from 'mockjs'引入mockjs 3.在ngOnInit(){}里随便写了一个mock ![image](https://user-images.githubusercontent.com/56286966/69699904-152d3300-1124-11ea-87db-78a128c1d4d0.png) 4.http请求(ajax) ![image](https://user-images.githubusercontent.com/56286966/69699980-47d72b80-1124-11ea-9fe5-a09c9867f9f4.png) 5.报错,可以正常获取到数据,但是结尾就是报错了。 ![image](https://user-images.githubusercontent.com/56286966/69700024-65a49080-1124-11ea-84f2-36c3a78abd70.png) 6.想知道moke不写在ngOnInit(){}里面要怎么引入,没找到相关资料。然后为什么报这个错。解决不了。