2024年1月23日

a标签下载文件 带token

摘要: const downloadfile = (url, token) => { const headers = new Headers(); headers.append('Authorization', token); // 设置token // 发起 Fetch 请求 fetch(url, { m 阅读全文

posted @ 2024-01-23 15:56 每天暴走三公里 阅读(203) 评论(0) 推荐(0) 编辑

2023年3月31日

喊话

摘要: <template> <div> <Music v-if="open"/> <a-modal :visible="isLoadLayer" :width="340" :maskClosable="false" :footer="null" > <a-icon type="loading" class 阅读全文

posted @ 2023-03-31 10:17 每天暴走三公里 阅读(73) 评论(0) 推荐(0) 编辑

2023年1月13日

vue 前端canvas 签名 画图

摘要: <template> <div class="main_analysis_content"> <canvas id="canvasId" style="background: yellow"></canvas> <div> <button @click="cancel()">取消</button> 阅读全文

posted @ 2023-01-13 11:26 每天暴走三公里 阅读(466) 评论(0) 推荐(0) 编辑

2022年11月22日

vue+ openlayers + GeoServer 地图初始化 标点加弹窗看详情

摘要: <template> <div class="mapCont"> <div id="map"> <div id="popup" ref="popup" class="ol-popup" v-show="vehiclePointInfo"> <div id="popup-closer" class=" 阅读全文

posted @ 2022-11-22 11:59 每天暴走三公里 阅读(721) 评论(0) 推荐(0) 编辑

2022年2月23日

sort()中文按相同的属性排在一起

摘要: var aa = [ {'name': '测试中', 'num': 121}, {'name': '测试上', 'num': 121}, {'name': '测试中', 'num': 121}, {'name': '测试下', 'num': 121}, {'name': '测试中', 'num': 阅读全文

posted @ 2022-02-23 11:17 每天暴走三公里 阅读(36) 评论(0) 推荐(0) 编辑

2021年11月10日

div边框动效

摘要: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="wi 阅读全文

posted @ 2021-11-10 17:51 每天暴走三公里 阅读(386) 评论(0) 推荐(0) 编辑

2021年10月14日

文字转语音 前端 (google自带的语音合成,文字转声音)

摘要: 1安装:npm install text2voice 2新建Text2Voice.js把下面的代码拷贝到这个js文件里 function Text2Voice() { this.name = "测试。。。 this.synth = window.speechSynthesi this.msg = n 阅读全文

posted @ 2021-10-14 09:53 每天暴走三公里 阅读(1109) 评论(0) 推荐(0) 编辑

2021年7月8日

秒数转换天时分

摘要: transformDay (val) { const time = Number(val) if (time !== 0 && val!== undefined) { const days = parseInt(time / (60 * 60 * 24)) const hours = parseIn 阅读全文

posted @ 2021-07-08 17:26 每天暴走三公里 阅读(188) 评论(0) 推荐(0) 编辑

2021年5月19日

数组筛选替换: 前一个item的值替换成自己的,数组长度不变

摘要: const arrya = [ { 'value': 1 }, { 'value': 0 }, { 'value': 1 }, { 'value': 2 }, { 'value': 0 } ]for (let i = 0; i < arrya.length; i++) { if (i > 0 && 阅读全文

posted @ 2021-05-19 15:46 每天暴走三公里 阅读(81) 评论(0) 推荐(0) 编辑

2021年5月17日

echart 图表月份不足 前端开发用0补足

摘要: <template> <div> <div id="Echart_chartId"></div> </div></template><script>export default { name: 'Echart', data () { return { xdata: [], ydata: [] } } 阅读全文

posted @ 2021-05-17 14:54 每天暴走三公里 阅读(511) 评论(0) 推荐(0) 编辑

导航