【博客系列(一)】mavonEditor+highlight.js+highlightjs-line-numbers.js 新增mac样式+行数显示功能
/新建form表单类型的数据 let formData = new FormData();//将我们上传的图片地址$file加进表单里面,命名为“file”(参数名字与后端相匹配) formData . append("file" , $file);axios({url : this . $api + "icommunity/post/getImageUrl" , //请求地址 method : "POST" , data : formData , headers : {
原创
2023-05-19 11:45:27 ·
839 阅读 ·
1 评论