- 引入代码库
<link rel="stylesheet" href="iwindow.css">
<script src="jquery.js" charset="utf-8"></script>
<script src="iwindow.js" charset="utf-8"></script>- 对任何想要弹出的代码调用 iwindow,比如有类名为
aaa的div:
$('.aaa').iwindow('show');- 也可以传入参数
$('.aaa').iwindow('show',{
dragable:true,
title:'hello,world',
titleBgColor:'#e3695f'
})- 预览
