# 网络请求 this.request(object)
本功能需要联网且并不是非常完整,请尽可能引入axios等其他包。
| 参数名 | 类型 | 必填 | 说明|
| --- | --- |--- | --- |
| url| string| 是 | JS文件链接 |
| methods| string| 否(默认get) | get或post |
| success| function| 是 | 返回成功参数 |
| error | function| 是 | 返回错误信息 |
### 示例
```
new Bigfoot({
data: {},
async mounted() {
// console.log('hello')
this.request({
url : 'www.baidu.com',
methods : 'post',
data : {},
success : (res) => {
console.log(res)
},
error : (err) => {
console.log(err)
}
})
}
})
```