12月 8, 2021 - php开发    postman发送put请求已关闭评论

postman发送put请求

1:后端定义了一个PUT请求,可以上传文件

2:在postman中发起post请求的同时,在Body中定义一个_method,其值为PUT.

3:然后其它字段就跟post请求类似了,上传文件啥的

[……]

Read more

11月 15, 2021 - Jenkins, 前端    前端nuxt在jenkins部署已关闭评论

前端nuxt在jenkins部署

1: 在jenkins上拉代码,写.env,npm build, 生成压缩包

#!/bin/bash

 

##判断是否存在备份用的nuxt目录##

cd /home/deployer/nuxt_backup/

 

if [[ ! -d nuxt ]];then

echo "the document is not exsit"

mkdir -p /home/deployer/nuxt_backup/nuxt[……]

Read more

10月 23, 2021 - 前端    前端vue框架获取视频的时长已关闭评论

前端vue框架获取视频的时长

前端vue框架获取视频的时长:

            const url = URL.createObjectURL(file)

            const audioElement = new Audio(url)

            console.log(file, audioElement, '22222222222222222&#3[……]

Read more

页面:«1...17181920212223...45»