![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
笔记
前端的一只菜鸟
这个作者很懒,什么都没留下…
展开
-
Vue和iframe跨域调用
Test.js 在iframe内的html页面引入// 在iframe子页面引入该jswindow.addEventListener ('message', function(event) { /** * 可以在这个地方调用HTML */ console.log('调用HTML') if (event&&event.data){ console.log(event.data) console.log('.原创 2021-07-11 19:34:35 · 4824 阅读 · 0 评论 -
vue动态路由
import Vue from ‘vue’import Router from ‘vue-router’Vue.use(Router)/***构造动态路由*/let routes=[]const contextInfo=require.context(’…/components/’,true,/.vue$/i)contextInfo.keys().filter(fileName=>{const pathConfig=contextInfo(fileName)const split原创 2021-02-24 19:37:26 · 173 阅读 · 0 评论