窗口同步

时间:2024-03-01 08:09:11
【文件属性】:
文件名称:窗口同步
文件大小:191KB
文件格式:ZIP
更新时间:2024-03-01 08:09:11
JavaScript 窗口同步 스크립트가추 < script src =" dist/window-sync.min.js " > </ script > 브라우저 // 초기 세팅 const popup = windowSync . opener ( { key : 'matching-key' // 메인과 팝업을 연결할 키 url : '/example/popup' , // 팝업 페이지 주소 options : { top : 100 , // 팝업 y 좌표 left : 100 , // 팝업 x 좌표 width : 400 , // 팝업 넓이 height : 400 , // 팝업 높이 autoFocus : true // 팝업 자동 포커스 유무 } } ) ; // 팝업 열기 popup . open ( ) ;
【文件预览】:
window-sync-main
----.eslintrc.json(476B)
----.gitignore(12B)
----.babelrc(97B)
----package.json(1KB)
----webpack()
--------webpack.dev.js(1KB)
--------path.js(97B)
--------webpack.prod.js(877B)
----package-lock.json(689KB)
----src()
--------const.js(156B)
--------index.js(359B)
--------utils.js(822B)
--------popup.js(2KB)
--------opener.js(5KB)
----webpack.config.js(201B)
----cypress.json(41B)
----dist()
--------window-sync.min.js(13KB)
----public()
--------index.html(3KB)
--------popups()
----.prettierrc.json(230B)
----README.md(1KB)
----.vscode()
--------settings.json(161B)
----docs()
--------index.html(3KB)
--------popups()
----cypress()
--------integration()
--------support()
--------plugins()
--------fixtures()

网友评论