vuejs-前后端交互 1. 使用$http.get()方法获取一个普通的文本数据new Vue({ el: 'box', data: {}, methods: { get: function(){ this.$http.get('a.txt').then(function(res){ alert(res.data); Vue 2023-12-12 166 点赞 2 评论 251 浏览