Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/mercurial/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQuery授权关闭长方体对话框_Jquery_Delegates_Boxy - Fatal编程技术网

jQuery授权关闭长方体对话框

jQuery授权关闭长方体对话框,jquery,delegates,boxy,Jquery,Delegates,Boxy,目前,我正在使用以下命令关闭一个对话框 <button onClick="Boxy.get(this).hideAndUnload(); return false;">Cancel</button> 从中,您可以使用.closecss类: .结束 Any elements with this class will be hooked up to close the dialog on 点击 再想一想:你试过使用这种逻辑吗 $('.btnCancel').cli

目前,我正在使用以下命令关闭一个对话框

<button onClick="Boxy.get(this).hideAndUnload(); return false;">Cancel</button>
从中,您可以使用.closecss类:

.结束

Any elements with this class will be hooked up to close the dialog on
点击

再想一想:你试过使用这种逻辑吗

    $('.btnCancel').click(function(){
     Boxy.get(this).hideAndUnload(); return false;
});

我没有看过这个方方正正正的网站(在我找到它之前你已经回答了),但是你的第二个建议看起来像是我对如何实现OP意图的第一个想法。尽管我投票赞成有意识地建议使用Boxy本身的内置特性,而不是通过额外的jQuery使事情复杂化。好电话=)
Any elements with this class will be hooked up to close the dialog on
    $('.btnCancel').click(function(){
     Boxy.get(this).hideAndUnload(); return false;
});