06 2022 档案

js 获取http响应头信息
摘要:// 创建一个新的XMLHttpRequest对象 var req = new XMLHttpRequest(); // 注意:使用同步请求可能导致主线程阻塞,不建议在实际生产环境中使用 req.open('GET', document.location, false); //发送请求 req.se 阅读全文

posted @ 2022-06-29 15:01 完美前端 阅读(959) 评论(0) 推荐(0)

js iframe传参
摘要:父级向iframe内部发送消息 // 获取iframe的引用 const mapFrame = this.$refs.iframeref; // 处理浏览器兼容性 if (mapFrame.attachEvent) { // IE浏览器中使用attachEvent mapFrame.attachEv 阅读全文

posted @ 2022-06-28 23:24 完美前端 阅读(1239) 评论(0) 推荐(0)

vue2 拖拽组件
摘要:完整的代码, 可以复制引用 Vue 右上角拖拽的客服图标组件 <template> <!-- 客服图标链接 --> <a :href="$store.state.user.info.kefulink" class="server" ref="drawable" :style="{right: rig 阅读全文

posted @ 2022-06-04 19:57 完美前端 阅读(1642) 评论(0) 推荐(0)

导航