摘要: <audio src="@/assets/1291007551.mp3" @timeupdate="getCurr" @pause="is_stop=true" @play="is_stop=false" autoplay="autoplay" ref="audio" @canplay="showL 阅读全文
posted @ 2021-04-21 17:56 A-zero 阅读(4752) 评论(1) 推荐(1) 编辑
摘要: $.ajax({ url: 'http://api.map.baidu.com/direction/v2/transit', type: 'GET', data: { origin: '29.595443,103.49283',//起点坐标字符串 destination: '29.573827,10 阅读全文
posted @ 2021-04-16 09:23 A-zero 阅读(198) 评论(0) 推荐(0) 编辑
摘要: function MySocket(path){ this.path=path var that=this this.timer=null this.tout=null this.init=function() { if (typeof(WebSocket) "undefined") { alert 阅读全文
posted @ 2021-04-02 15:23 A-zero 阅读(436) 评论(0) 推荐(0) 编辑
摘要: graphic: [ { type: 'text', silent:true, z: 100, left: 'center', top: 'middle', style: { fill: '#ffffff20', text: [ '© 2020 版权信息' ].join('\n'), fontSiz 阅读全文
posted @ 2020-12-14 10:42 A-zero 阅读(1400) 评论(0) 推荐(0) 编辑
摘要: 1.安装 npm install echarts --save main.js import echarts from 'echarts' Vue.prototype.$echarts = echarts 2. <div id="chart15" :style="{width: '100%', he 阅读全文
posted @ 2020-10-14 14:56 A-zero 阅读(244) 评论(0) 推荐(0) 编辑
摘要: function deviceType(){ var u = navigator.userAgent, app = navigator.appVersion; var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; 阅读全文
posted @ 2020-09-24 16:29 A-zero 阅读(1451) 评论(0) 推荐(0) 编辑
摘要: watch:{ $route:{ handler(nv,ov){ this.ifmb=true; } }, deep:true } 阅读全文
posted @ 2020-09-04 18:38 A-zero 阅读(3595) 评论(5) 推荐(0) 编辑
摘要: 根目录下创建vue.config.js,内容 module.exports = { assetsDir: 'static', parallel: false, publicPath: './', productionSourceMap: false,//不生成map文件 } 阅读全文
posted @ 2020-09-04 18:34 A-zero 阅读(883) 评论(0) 推荐(1) 编辑
摘要: 1.将此代码放入HTML页面中 <audio src="audio/music.mp3" style="display: none;" class="music" > 当前浏览器不支持audio </audio> 2.首先使用js获取这段音频 var music=document.getElemen 阅读全文
posted @ 2020-06-04 12:11 A-zero 阅读(1447) 评论(0) 推荐(0) 编辑
摘要: document.addEventListener('scroll', function (event) { var scrollDistance = window.pageYOffset || document.documentElement.scrollTop || document.body. 阅读全文
posted @ 2020-05-30 01:33 A-zero 阅读(110) 评论(0) 推荐(0) 编辑