摘要: <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)
摘要: 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)
摘要: 业务需求滚动条滚动播放视频内容,最后想到用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)
摘要: 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)