vue-cli 使用axios 模拟请求接口数据

vue.cli项目封装全局axios,封装请求,封装公共的api和调用请求的全过程 vue项目的前期配置 封装axios实例 封装API 阅读详情
前期准备
1、vue create 生成项目
2、安装express  、axios

一、 生产项目

vue create vuedemo

二、安装 express 、 axios

npm install express
npm install axios

三、配置项目

配置文件如下

在这里插入图片描述
1、添加data 数据

test.json 文件内容

{
  "code": 200,
  "data": {
    "name": "hezs",
    "age": 26
  }
}

2、 request.js 封装axios

import axios from 'axios'

var baseURL = 'http://localhost:8080'

const service = axios.create({
  baseURL: baseURL,
  timeout: 100000 // request timeout
})

service.interceptors.request.use(
  config => {

    return config
  },
  error => {
    // do something with request error
    console.log(error) // for debug
    return Promise.reject(error)
  }
)

// response interceptor
service.interceptors.response.use(

  response => {
    const res = response.data
    // console.log('resp:')
    // console.log(res)
    // if the custom code is not 200, it is judged as an error.
    if (res.code !== 200) {
      alert('!==200')
      return Promise.reject(res.message || 'error')
    } else {
      return res.data
    }
  },
  error => {
    console.log('err' + error) // for debug
    let msg = error.message
    console.log(msg);
    return Promise.reject(error)
  }
)

export default service

3、新建api

import request from '@/utils/request'

export function testList(query) {
  return request({
    url: '/api/test',
    method: 'get',
    params: query
  })
}

4、在 vue.config.js 引入配置

const test = require('./data/test.json')
const express = require('express')
const app = express()
let apiRoutes = express.Router()
app.use(`/api`, apiRoutes)


module.exports = {
  //生成环境部署路径,默认为'/'
  publicPath: './',
  //当运行 build 时生成的生产环境构建文件的目录
  outputDir:'demo',
  devServer: {
    proxy: {
      '/api': {
        target: 'http://localhost:8080',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    },
    before(app) {
      app.get('/test', (req, res) => {
        res.json(test)
      })
    }
  }
}

四、测试接口

在vue组件中

<template>
  <div class="hello">
   <div>
    <h1>测试接口数据</h1>
     <div>
       <span><b>name</b>: {{resData.name}}</span>
       <br>
       <span><b>age</b>: {{resData.age}}</span>
     </div>
   </div>
  </div>
</template>

<script>
import { testList } from '@/api/test'
export default {
  name: 'HelloWorld',
  data() {
    return{
      resData: {
        name: '',
        age: 0
      }
    }
  },
  mounted() {
    testList().then(res=>{
      console.log(res);
      this.resData = res
    }).catch(err=>{
      console.log(err);
    })
  },
  methods: {

  }
}
</script>

<style scoped>

</style>

接口数据返回
在这里插入图片描述

av8d. it’s 666 !!!

vue2.x(vue-cli2.x)配置跨域请求代理,设置请求头 1、在config/index.js设置配置文件,跨域配置代理 (默认里面内容为空,我们需要加入对跨域接口的配置) 根据接口的不同设置的请求头和主机也不同,自己按照格式要求进行配置即可。 如上图配置好了之后,'/apis/getSongLyric'为自定义的axios请求路径,自己根据相应接口功能来命名。后面在用axios请求接口的时候,url路径就要写自定义的这个,那么代理就会自动解析成对应的请... 阅读详情

相关推荐

【精讲】vue框架 axios请求(内含模拟数据交互部分)入门

【精讲】vue框架 axios请求(内含模拟数据交互部分)等详细内容入门

m0_59505309的博客 957

vue请求接口获取数据及跨域问题

title: vue请求接口获取数据及跨域问题 date: 2018-11-28 16:44:08 文章目录0. 前言1. 通过api接口获取数据1.1. vue-source1.1.1. 安装1.1.2 使用1.2. axios1.2.1. 安装1.2.2. 使用1.2.3. 补充2. 跨域问题2.1. 问题2.2. 补充2.3. 解决2.3.1. CROS(跨域资源共享)2.3.2. Vue代理2.3.3. nginx反向代理 0. 前言 本文基于vue-cli3。 1. 通过api接口获取数据 在.

dounine的博客 2478

使用Vue读取API数据

在本文中,我们将学习如何使用Vue.js读取API数据,并提供相应的源代码示例。通过使用Vue.js的强大工具和生命周期钩子函数,你可以轻松地从后端API获取数据并在Vue组件中进行展示。这样,当你在浏览器中运行Vue应用时,它将会从API获取用户列表数据,并将其显示在页面上。安装完成后,我们可以开始编写Vue组件来读取API数据。的组件,它将从后端API获取用户列表数据并在页面上显示。接下来,我们需要在Vue应用的入口文件中使用。在上面的代码中,我们定义了一个。在上面的代码中,我们将。

PixelDyno的博客 647

vue调用接口

一、在api中新建该页面的js文件用于存放该页面的所有接口 二、引用所需组件,调用接口(已经全局配置了接口地址) import axios from 'axios' // 首页-我的展台 export function getQueryMyBooth(data) { return request({ url: '/booth/query', method: 'post', data }) } 三、在该页面导入,在create中将获取到的数据传给data im

W936438835的博客 1万+

Spring Boot应用Docker化实战:从Dockerfile编写到镜像推送完整流程

本文详细介绍了将Spring Boot应用Docker化的完整实战流程。从环境准备、项目审视,到编写高效且安全的Dockerfile,重点讲解了多阶段构建、镜像层优化、Spring Boot分层JAR等核心技巧,并涵盖了镜像构建、验证、调试以及最终推送至仓库并集成CI/CD的最佳实践,帮助开发者构建生产级Docker镜像。

butter的博客 1034

COMSOL模拟CO2驱替CH4:多物理场耦合建模与工程应用详解

在非常规天然气开发与碳封存工程中,多孔介质内的渗流、吸附与岩石变形相互耦合,使得CO2驱替CH4的产能预测和CO2封存评估无法仅靠经验公式完成。以达西定律描述裂隙流动、以扩展Langmuir方程刻画竞争吸附、用应力-吸附-渗透率关系关联煤岩变形,是多物理场耦合数值模拟的核心路径。COMSOL Multiphysics凭借内置渗流、固体力学与组分传递接口,能够将这些机制整合为可参数化扫描的仿真模型,为注气压力、井距、渗透率演化等方案设计提供量化依据。围绕CO2驱替CH4模拟的建模流程、参数取法与结果判读,可形

weixin_29574585的博客 172

Vue中用v-for遍历数据和使用axios请求数据并遍历

需求:想使用axios来遍历数据

weixin_56035334的博客 2891

ElasticSearch 集群安全加固实战:从零配置TLS证书与密码认证

本文提供了一份详尽的ElasticSearch集群安全加固实战指南,重点介绍了如何从零开始配置TLS证书与用户安全认证。通过分步讲解证书生成、节点配置、集群重启及密码设置,帮助管理员为ES集群构建通信加密与访问控制的双重防线,有效提升数据安全性与合规性。

weixin_29323493的博客 446

vue-cli2.x 获取线上api 接口 mock虚拟数据

vue-cli 获取线上api 接口数据 1.新建在线接口 在线接口管理(支持mock语言) 在线接口链接 进入-> 注册,登录-> 创建仓库 ->点击仓库名进入仓库, 里面有个示例接口, 可以仿照示例新建自己需要的接口 (不懂mock语法可以去mock官网看一下使用示例) 新建接口: 左上角新建 点右上角编辑,进行编辑,在响应内容输入名称,类型,规则和初始值,输入就能看到数据结果(数据是随机的,刷新便会更新) 获取api 接口 url 点击 红色 的/table/list 跳转

兜裡全是糖的博客 830

电商订单系统设计简析(一)

电商所有模块中,订单系统作为最为核心的模块,决定了整个流程能不能顺畅的执行,起着承上启下的作用。相信很多PM都不陌生,到了一家电商公司,总会觉得公司现有的流程有不少问题,因为问题来自四面八方,一下子摸不着到底是哪里出了问题,PM就跟补丁师傅一样,遇到一个补一个。其实很多日常开发和测试提得需求都是表面需求,而这些表面上呈现出的各种问题,都是源自于流程上的不完整或者流程上某个环节上的缺失导致的。订单系...

野蛮非先生的博客 9562

深入解析进化算法中的选择与多样性

在计算科学的世界里,最优雅的解决方案往往源于最古老的智慧——大自然。进化算法(Evolutionary Algorithms, EAs)正是这样一种受达尔文自然选择学说启发的强大工具。它们通过模拟“适者生存”的过程,在庞大的可能性海洋中搜寻最优解。。:指的是深入挖掘和优化已知的优质解。这就像在一片已知的沃土上精耕细作,力求获得最高产量。强大的选择压力会促进这一过程。:指的是在整个搜索空间中寻找全新的、可能更优的解。这好比派遣探险队去发现新大陆,充满了未知与机遇。保持种群的多样性是探索的关键。

weixin_62533513的博客 725

使用 node 模拟请求接口

使用 Vue 写项目肯定会遇到一个问题,如何模拟服务端请求数据,那这就需要用到 node.js了。这篇我们讲解一下如何使用 node.js 模拟服务器端请求数据。 一、 初始化并创建一个项目 vue init webpack-simple node-demo cd node-demo npm i cnpm i vuex axios -S 二、编写接口 在 build 文件下的 webpack....

weixin_44526331的博客 903

一致性总线CMN600AE-ARM系列

主要介绍一致性总线CMN600AE,根据arm官网的spec来概述其模块。提示:以下是本篇文章正文内容,下面案例可供参考CMN600ae是基于Mesh拓扑结构,对外支持AMBA CHI/ACE-LITE等接口,内部改用路由结构转发数据,并提供硬件一致性和系统缓存,还支持多芯片互联。CMN600在T16FFC上可以做到2Ghz,另外AE版本增加了车轨芯片的安全功能,总线内部采用EDC检查,接口采用的奇校验。

tujiuguo3994的博客 6305

Vue

前面已经做过前(Vue)后端(SpringBoot)分离的项目,当再次使用Vue的时候发现自己很多东西都忘了。所以写本Vue专题记录。 整理了一个多星期的vue终于有结果了。 VUE之常用语法(一) VUE之组件化开发(二) VUE之路由模块(三) 后续有时间将整理实际案例供参考。 案例技术栈、内容大纲如下: 1. 全家桶成员使用(vue-cli、vue-router、axios、vuex) 2...

吾行远方 7534

AI论文写作工具对比:千笔AI与文途AI实战测评

AI写作工具正逐步改变学术写作生态,其核心原理是通过自然语言处理技术实现文本生成与优化。这类工具的技术价值在于提升写作效率,降低学术入门门槛,特别适合文献综述、研究方法设计等标准化环节。在实际应用中,不同工具各有侧重:千笔AI擅长结构化写作与量化分析,文途AI则聚焦质性研究与思维拓展。本科生使用这些AI论文助手时,需特别注意学术伦理边界,所有生成内容必须经过严格人工校验。合理运用AI工具能有效缓解论文写作中的文献处理、方法表述等痛点,但核心学术思维仍需研究者自主构建。

weixin_34023982的博客 463

第八届传智杯WPS智能办公能力挑战赛练习题库

本文是关于WPS Office软件操作知识的选择题汇总,内容涵盖WPS文字、表格和演示三大组件的常用功能。主要包括:云文档协同编辑、文本框插入、幻灯片打印设置、数据排序与筛选、函数应用(如SUMIF、COUNT)、动画效果设置、格式刷使用、页眉页脚设置、单元格引用类型等基础操作要点。同时涉及计算机基础概念如二进制、ROM存储器等。题目以单选和多选形式呈现,附带详细答案解析,全面检验用户对WPS办公软件的功能掌握程度和实际操作能力,适用于办公软件技能培训和水平测试。

qq_73044452的博客 1463

vuecli3修改html,vue-cli3简单使用配置

1.下载安装vue-cli3,这里我使用npm安装npm install -g @vue/cli如果已经安装之前版本(1.x或2.x)需要先卸载,再安装新的版本。安装完成后可以通过vue --version命令查看版本2.创建一个项目vue-cli3和之前创建一个项目的命令不同vue create project-name // vue-cli3vue init webpack projec...

weixin_39957461的博客 775

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

Vue-cli 返回本地模拟数据的两种方法

当我们使用vue-cli开发项目的时候, 我们会使用一些, 模拟数据(自己定义的数据)来作为接口请求过来的数据 在vue-cli 4 的版本有两种做法 一种是 把模拟数据写在 public 文件夹中, 使用 axios, 来请求数据, 因为vue-cli 的 devserver 是把public 目录, 做为访问的根目录的, 如果根目录中没有找到所要的资源, 才会去看有没有代理服务器 第二种, 就是自已配置一个 express 服务器, 配置一下请求的参数, 并且在 vue.config.js中 配置 代理

hjh15827475896的博客 560

锂电池充电器电路设计 里面有电路

锂电池充电器电路设计 里面有电路 3.7V升压到5V电路设计。

InTheHand.Net.Personal+BlueTooth4,蓝牙开发

项目中有蓝牙开发的必备dll,现在网上相关的文档博客不少,有的说的多有的说少,但是却很少有这两个dll,分享一下。

Statistics and Machine Learning Toolbox

Statistics and Machine Learning Toolbox(带书签),MATLAB统计学习工具

Vue使用Bootstrap,axios和生命周期函数实现列表效果

Vue使用Bootstrap,axios和生命周期函数实现列表效果1.项目构建1.1使用vist创建vue项目,导入bootstrap,axios包1.2创建后台文件二级目录三级目录 1.项目构建 1.1使用vist创建vue项目,导入bootstrap,axios包 npm init vite-app table-demo cd table-demo npm i npm i axios bootstrap 然后把vue默认的样式都删干净 1.2创建后台文件 创建一个新文件夹,进入命令行初始化一下,然后

Larry的博客 3178

vue项目中应用mockjs

如何在vue项目中应用mockjs

qq_42830736的博客 2100

Elementui 的初识

文章目录1 前后分离开发(概念熟悉)1.1 前后端分离的是web的一种运用的框架,1.2在开发阶段,前后端工程师约定好数据交互接口,实现并行开发和测试;1.3在运行阶段前后端分离模式需要对web应用进行分离部署,前后端之前使用HTTP或者其他协议进行交互请求(restful风格)2 搭建前端环境-`nodejs&npm&vue&webpack&vuecli`(掌握)...

weixin_45471212的博客 415

【Vue】部分目录的直观理解

【Vue】部分目录的直观理解

m0_62956576的博客 220

vue-cli引入axios

1、创建vue-cli项目: https://blog.csdn.net/qq_39648029/article/details/104250067 2、下载依赖: npm install axios --save 3、 在 main.js中添加如下代码: import axios from 'axios'; Vue.prototype.$axios = axios; ...

毅呀毅呀哟 6439

vue2、vue3中使用axios请求本地json数据的详细过程

研究背景 在我们平常写demo的时候难免需要自己模拟一些数据去调用,那么如何请求本地的json数据呢,下面将要从0开始,讲一下请求本地json数据的详细过程,途中遇到的问题及解决方法 技术选型 我们选择那种方式来请求数据呢,是要根据当前项目环境来选择,一般来说常用的是jquery的$.getJSON( ) 方法 和 ajax/axios ,由于当前vue工程是由vue-cli搭建的,我们 选用axios去请求 步骤: 1、安装axios npm install axios --save 2、在main.j

Jeasu_0908的博客 2万+

Vue中axios使用详解

一:axios定义 axios是什么:axios它是基于promise的http库,可运行在浏览器端和node.js中,然后作者尤雨溪也是果断放弃了对其官方库vue-resource的维护,直接推荐axios库 axios的作用:axios主要是用于向后台发起请求的,还有在请求中做更多是可控功能。 具备以下特征: a.从浏览器中创建 XMLHttpRequest b.从...

sunnyjingqi的博客 1万+
上一篇: vue-cli3中PC端大屏自适应
下一篇: git 新建分支、合并分支和撤回push操作
脑瓜不疼
博客等级 码龄9年 84粉丝 124原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值
⌂ 换网址