笔记(tm_springboot)

1.@change="getFile($event)"

2.File imageFolder= new File(request.getServletContext().getRealPath("img/category"))

3.

 //axios.js 上传文件要用 formData 这种方式
var formData = new FormData();
formData.append("image", this.file);
formData.append("name", this.bean.name);
axios.put(url,formData).then(function(response){
     location.href=vue.listURL;
});

 4.v-model.trim="bean.id" 

5.axios.delete('/api?id='+id).then()

6.@keyup.enter="add"

posted @ 2019-08-19 22:33  sunseeker  阅读(181)  评论(0编辑  收藏  举报