因此,为了显示这个模式,我有以下代码:隐藏模式窗口的JavaScript
<button type="button" onclick="openModal(); return false;">A button</button>
和这个JavaScript是:
<script type='text/javascript'>
function openModal(a)
{
$.modal({
content: 'Some content here',
title: 'a title',
maxWidth: 500,
});
win.closeModal();
}
</script>
我需要将这个隐藏功能。任何人都可以给我一些关于如何执行hideModal()函数的建议,当我点击屏幕上的任何位置时它将隐藏模态?
你使用jQuery吗? –
不,它只是javascript –
'$ .modal()'是什么? –