readme

作者: Lucky_Xue | 来源:发表于2019-05-22 14:28 被阅读0次

前端框架使用说明

配置 yarn

可以通过以下代码检验是否安装了yarn yarn -v or yarn --version

如果没有安装yarn可以尝试用npm代替, 如果不行可根据以下步骤安装yarn

macOS

可以通过Homebrew安装

brew install yarn

windows

可以通过安装程序安装

安装

yarn install --registry=https://registry.npm.taobao.org

运行

yarn run serve

使用的UI

已配置Ant Design Vue, 可以参考的文档

axios

实例

get

// Make a request for a user with a given ID
axios.get('/user?ID=12345')
  .then(function (response) {
    console.log(response);
  })
  .catch(function (error) {
    console.log(error);
  });

// Optionally the request above could also be done as
axios.get('/user', {
    params: {
      ID: 12345
    }
  })
  .then(function (response) {
    console.log(response);
  })
  .catch(function (error) {
    console.log(error);
  });

post

axios.post('/user', {
    firstName: 'Fred',
    lastName: 'Flintstone'
  })
  .then(function (response) {
    console.log(response);
  })
  .catch(function (error) {
    console.log(error);
  });

同时发送多请求

function getUserAccount() {
  return axios.get('/user/12345');
}

function getUserPermissions() {
  return axios.get('/user/12345/permissions');
}

axios.all([getUserAccount(), getUserPermissions()])
  .then(axios.spread(function (acct, perms) {
    // Both requests are now complete
  }));

相关文章

  • WHID设备刷入开源控件

    先看ReadMe,先看ReadMe,先看ReadMe!!! 踩坑 问题1 ser_open(): can't se...

  • Git的远程单人操作

    Github是托管代码的远程仓库 README.md(README,README.markdown)可以将文件内容...

  • 06.给文件重命名的简便方法

    一般操作:mv readme.txt readme.mdgit add readme.mdgit rm rea...

  • 网易c++------课时37---EaxyX快速入门

    https://easyx.cn/readme/[https://easyx.cn/readme/]

  • 把demo放到GitHub上

    echo "# imagePicker" >> README.md git init git add README...

  • GitHub项目查找

    in:name example 名字中有“example”in:readme example readme中有“e...

  • Readme

    学习的途径 *《看透SpringMVC》

  • README

    背景 起这个标签(前端架构),主要是因为自己最近一直在从更高层级上去思考一些前端的问题,想专门建个tag,分类一下...

  • README

    这个专题呢就放一些临时抱佛脚的东西 反正也要一边看ppt一边写写免得看得不仔细嘛 记下来的话说不定有些感兴趣的点可...

  • Readme

    ThoughtWorks作业 给定迷宫大小和道路连通的条件,生成迷宫。 调用说明:调用类Maze中的mazecre...

网友评论

      本文标题:readme

      本文链接:https://www.haomeiwen.com/subject/wkxuzqtx.html