提交 dfb8f83d 编写于 作者: Z zhaoss

2.7.4小节习题答案修改

上级 95e3fc17
...@@ -178,11 +178,14 @@ export default { ...@@ -178,11 +178,14 @@ export default {
根据上方小常识,判断下面描述错误得是?<br/><br/> 根据上方小常识,判断下面描述错误得是?<br/><br/>
## 答案 ## 答案
```php ```php
Mock.mock( rurl, rtype, template ) Mock.mock( rtype, template )
``` ```
记录数据模板。当拦截到匹配 rurl 和 rtype 的 Ajax 请求时,将根据数据模板 template 生成模拟数据,并作为响应数据返回。 记录数据模板。当拦截到匹配 rtype 的 Ajax 请求类型时,将根据数据模板 template 生成模拟数据,并作为响应数据返回。
## 选项 ## 选项
...@@ -206,10 +209,10 @@ Mock.mock( rurl, rtype, function( options ) ) ...@@ -206,10 +209,10 @@ Mock.mock( rurl, rtype, function( options ) )
### C ### C
```php ```php
Mock.mock( rtype, template ) Mock.mock( rurl, rtype, template )
``` ```
记录数据模板。当拦截到匹配 rtype 的 Ajax 请求类型时,将根据数据模板 template 生成模拟数据,并作为响应数据返回。 记录数据模板。当拦截到匹配 rurl 和 rtype 的 Ajax 请求时,将根据数据模板 template 生成模拟数据,并作为响应数据返回。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册