iframe-loader:创建一个iframe \ html5方法postMessage \跨域

时间:2021-05-10 21:36:11
【文件属性】:
文件名称:iframe-loader:创建一个iframe \ html5方法postMessage \跨域
文件大小:9KB
文件格式:ZIP
更新时间:2021-05-10 21:36:11
JavaScript iframe-loader(iframe加载器) functions(功能) create an iframe according config(根据配置动态创建iframe) the iframe communicates with its father page,cross domain supported(支持iframe和父页面跨域通信(全屏、高度自适应、滚动监听等) use html5 method postMessage how to use(使用) parent.html(父页面) <script src="iframe-loader.js" config='{"type":"parent",src":"your url(iframe的网址)","style":{"width":"800px","height":"600px"},"renderTo":"my
【文件预览】:
iframe-loader-master
----.gitignore(191B)
----.babelrc(17B)
----package.json(971B)
----webpack.config.js(2KB)
----dist()
--------bundle.js(2KB)
----index.js(4KB)
----README.md(2KB)
----demo()
--------iframe.html(568B)
--------parent.html(415B)
----index.html(788B)
----loaders.config.js(2KB)
----server.js(413B)

网友评论