会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
猫子
菜到安详
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
下一页
2021年4月21日
vue控制audio播放与暂停,显示时长,进度控制
摘要: <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
阅读(5499)
评论(1)
推荐(1)
2021年4月16日
调用百度地图接口示例
摘要: $.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
阅读(218)
评论(0)
推荐(0)
2021年4月2日
网页使用websocket
摘要: 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
阅读(458)
评论(0)
推荐(0)
2020年12月14日
为echart添加水印
摘要: 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
阅读(1468)
评论(0)
推荐(0)
2020年10月14日
vue中echarts的使用
摘要: 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
阅读(251)
评论(0)
推荐(0)
2020年9月24日
js判断设备是ios还是android
摘要: 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
阅读(1457)
评论(0)
推荐(0)
2020年9月4日
vue路由变化时触发事件
摘要: watch:{ $route:{ handler(nv,ov){ this.ifmb=true; } }, deep:true }
阅读全文
posted @ 2020-09-04 18:38 A-zero
阅读(3615)
评论(5)
推荐(0)
解决vue打包后空白报错(没有自动创建vue.config.js)
摘要: 根目录下创建vue.config.js,内容 module.exports = { assetsDir: 'static', parallel: false, publicPath: './', productionSourceMap: false,//不生成map文件 }
阅读全文
posted @ 2020-09-04 18:34 A-zero
阅读(910)
评论(0)
推荐(1)
2020年6月4日
如何在网页插入音频,并用script来控制播放
摘要: 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
阅读(1554)
评论(0)
推荐(0)
2020年5月30日
导航条position变换
摘要: document.addEventListener('scroll', function (event) { var scrollDistance = window.pageYOffset || document.documentElement.scrollTop || document.body.
阅读全文
posted @ 2020-05-30 01:33 A-zero
阅读(115)
评论(0)
推荐(0)
上一页
1
2
3
4
下一页
公告