笔记(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"

转载于:https://www.cnblogs.com/bbllw/p/11380228.html

你可能感兴趣的:(笔记(tm_springboot))