day81 element-ui、接口与接口工具介绍postman、restful接口规范、drf安装、drf工作流程-生命周期、cbv

一、element-ui

  element-ui:饿了么开发的 基于vue上的bootstrap 【如果是原生的javescript就用bootsrap】


  bs按照特点的页面结构,赋予特点的class与属性    =>   eu书写特点的组件标签构建特点的结构


  总结:复制粘贴

  

  安装:项目目录下的终端

    >: cnpm i element-ui -S

  配置:main.js

    import  'element-ui/lib/theme-chalk/index.css'    =>需要导入css

    import ElementUi from 'element-ui'

    Vue.use(ElementUI)  ==>  给全局用的就是use,  给对象用的就是prototype

  使用:官方API  

    https://element.eleme.cn/#/zh-CN/component/installation

    <!--案例-->
    <el-row>
      <el-button>默认按钮</el-button>
      <el-button type="primary">主要按钮</el-button>
      <el-button type="success">成功按钮</el-button>
      <el-button type="info">信息按钮</el-button>
      <el-button type="warning">警告按钮</el-button>
      <el-button type="danger">危险按钮</el-button>
    </el-row>

二、postman 接口测试工具

  下载:https://www.getpostman.com/downloads/

  什么是接口:接口就是可以对其发送请求、发送数据,并且拿到返回结果的链接

猜你喜欢

转载自www.cnblogs.com/qingqinxu/p/11348973.html