会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
acttan
博客园
首页
新随笔
联系
订阅
管理
2022年7月20日
iframe通讯之postMessage
摘要: <iframe src="http://127.0.0.1:10000/?scene_id=92264524" name="myFrame" frameborder="0" id="asd"></iframe> const dat = document.getElementById('asd').c
阅读全文
posted @ 2022-07-20 16:01 acttan
阅读(77)
评论(0)
推荐(0)
2022年7月14日
微信自动播放音频
摘要: wx.config({ debug: false, appId: "", timestamp: 1, nonceStr: "", signature: "", jsApiList: [] }) wx.ready(function () { var audio = document.getElemen
阅读全文
posted @ 2022-07-14 10:19 acttan
阅读(169)
评论(0)
推荐(0)
2022年6月1日
滚动条控制播放的canvas逐帧动画
摘要: 业务需求滚动条滚动播放视频内容,最后想到用canvas逐帧动画来处理。记录下最终效果。 1 <template> 2 <div class="home"> 3 <div class="canvas"> 4 <canvas ref="canvas" :width="canvasWidth" :heig
阅读全文
posted @ 2022-06-01 14:49 acttan
阅读(677)
评论(0)
推荐(0)
2020年5月14日
new方法模拟
摘要: function Person(name, arg) { this.name = name this.arg = arg } Person.prototype.setName = function () { console.log('this.name:', this.name) }const Ma
阅读全文
posted @ 2020-05-14 17:35 acttan
阅读(98)
评论(0)
推荐(0)
深拷贝的几种方法
摘要: 方法一: function deepClone(obj) { const result = obj.constructor Array ? [] : {} //判断obj是否是数组,然后创建数组或者对象 if(obj && typeof obj 'object'){ for (let key in
阅读全文
posted @ 2020-05-14 15:52 acttan
阅读(430)
评论(0)
推荐(0)
跨域问题
摘要: 跨域,指的是浏览器不能执行其他网站的脚本。它是由浏览器的同源策略造成的,是浏览器施加的安全限制。 所谓同源是指,域名,协议,端口均相同,只要有一个不同,就是跨域。不明白没关系,举个栗子: http://www.123.com/index.html 调用 http://www.123.com/serv
阅读全文
posted @ 2020-05-14 11:45 acttan
阅读(267)
评论(0)
推荐(0)
公告