Commit e495e4198f9a21b0dfdf6490bdec92f9edd4e9c6
1 parent
145c620a
传值
Showing
2 changed files
with
26 additions
and
0 deletions
src/components/home.vue
| ... | ... | @@ -35,6 +35,30 @@ export default { |
| 35 | 35 | created() { |
| 36 | 36 | setTimeout(() => { |
| 37 | 37 | this.handleHide() |
| 38 | + | |
| 39 | + // $http.get('/user', { | |
| 40 | + // params: { | |
| 41 | + // ID: 12345 | |
| 42 | + // } | |
| 43 | + // }) | |
| 44 | + // .then(function (response) { | |
| 45 | + // console.log(response); | |
| 46 | + // }) | |
| 47 | + // .catch(function (error) { | |
| 48 | + // console.log(error); | |
| 49 | + // }); | |
| 50 | + | |
| 51 | + // $http.post('/user', { | |
| 52 | + // firstName: 'Fred', | |
| 53 | + // lastName: 'Flintstone' | |
| 54 | + // }) | |
| 55 | + // .then(function (response) { | |
| 56 | + // console.log(response); | |
| 57 | + // }) | |
| 58 | + // .catch(function (error) { | |
| 59 | + // console.log(error); | |
| 60 | + // }); | |
| 61 | + | |
| 38 | 62 | // 模拟请求 |
| 39 | 63 | // this.$fetch('/api/v2/movie/top250').then((response) => { |
| 40 | 64 | // console.log(response) | ... | ... |
src/main.js