2021
01-13
01-13
Vue项目中使用mock.js的完整步骤
在Vue项目中使用mock.js开发工具选择:Vscode1.使用命令行创建vue项目(手动选择Babel,Router,Vuex)2.导入element-ui(为了显示效果好一点),命令行输入npmielement-ui-S3.在main。js中进行引用importElementUIfrom'element-ui'import'element-ui/lib/theme-chalk/index.css';//样式文件一定要引入Vue.use(ElementUI)4.新建src/views/main/List.vue使用elememnt-ui中的自定义列模板<template><div><el-table:da...
继续阅读 >