青橙商城项目总结
day02_品牌管理前端与图片上传
技术栈:Element UI;ES6;Spring;OSS
学习目标:
1)ElementUI常用组件:https://element.eleme.cn/#/zh-CN/component/avatar
2)ES6常用语法:let声明变量;const声明常量;
模板字符串:
const name = 'lux' console.log(`hello ${name}`) //hello lux
(’ ')完成多行字符串拼接;
箭头函数:
(response,message) => { ....... }
3)前端代码
列表展示:
<script> new Vue({
el: '#app', data() {
return {
tableData: [] } },
created() {
axios.get('/brand/findAll.do').then(response=>