我是弹窗获取用的html
第1个
第2个
第3个
第4个
参数说明
参数 | 说明 | 默认值 |
showtype | 显示动画 | 默认为空,可选(sideleft/sideright/sidetop/sidebottom) |
left | 定位元素位置信息 | 居中 |
top | 定位元素位置信息 | 5分之2 |
title | 提示头部信息 | 提示信息 |
titleshow | 显示头部信息 | 显示 |
width | 宽度 | 250px(支持%) |
height | 高度 | 170px(支持%) |
content | 内容 | 你好,程序猿! |
shadow | 阴影透明度 | 0.6 |
shadowclose | 阴影可以关闭? | false |
type | 弹出类型 | success |
closetime | 自动关闭的时间 | 0(不自动关闭) |
close | 关闭 | false(传递true即可关闭弹窗) |
success | 成功创建弹出层后执行 | 无 |
photoargs | 弹出相册时候的配置(参考轮播) | 无 |
align | select时候的对齐方式,auto自动调整,为空就在屏幕的中间,设置对应的话,top不起作用,left可以设置 | auto(left/right/center/auto/"") |
selfclass | 自定义css | 无 |
子页面关闭父页面的弹出[$('body', parent.document).JKAlert({close:true});] 子页面执行父页面的方法 1.$('.dotest', parent.document).trigger('click'),父元素是需要触发执行的的; 2.parent.fufunction("我是子元素"),fufunction是父元素的全局函数(即不要写在$(function(){fufunction(){}})里面) |
弹窗实例