通过接口学习js基础笔记(0623)


表格自定义输出:


双向数据绑定

1.web 3D环境
1)准备资源 【六面体照片、3D模型(fbx)】
2)程序编写
three.js
1.安装依赖
> cnpm install three --save
> cnpm install three-orbitcontrols --save
上述已经安装,安装下面
> cnpm install three-fbxloader-offical --save
2.将资源 res.zip【解压到public】并且将xxx.fbx放入obj文件夹
3.提交后 更新
> pull/cnpm install/push/npm run dev

2.图片上传
1)接口
1.将配置文件上传到linux的根目录
2.将jar包更新
2)接口 BaseFile
上传文件后返回文件
3)功能
查询、删除
http://121.199.29.84:8888/group1/
class="upload-demo"
action="http://localhost:8009/file/upload" 上传图片接口
:on-success="successHandler"> 自动上传成功后执行函数
点击上传

successHandler(resp){
if(resp.status === 200){
let url = "http://121.199.29.84:8888/group1/"+resp.data.id;
this.$set(this.form,'userFace',url);
} else {
this.$message({type:"error",message:resp.message})
}
},


//转译时间

// timestampToTime(row, column) {
// var date = new Date(row.logTime); //时间戳为10位需*1000,时间戳为13位的话不需乘1000
// var Y = date.getFullYear() + "-";
// var M =
// (date.getMonth() + 1 < 10
// ? "0" + (date.getMonth() + 1)
// : date.getMonth() + 1) + "-";
// var D = date.getDate() + " ";
// var h = date.getHours() + ":";
// var m = date.getMinutes() + ":";
// var s = date.getSeconds();
// return Y + M + D + h + m + s;
// },

相关