大家好我希望能够从内部打开时关闭fancyBox.
我尝试了以下但无济于事:
function closeFancyBox(html){
var re = /.*Element insert complete!.*/gi;
if( html.search( re ) == 0 ){
$.fancybox.close();
//alert("foo");
}
}
Run Code Online (Sandbox Code Playgroud)
foo将在对话框中打开但不会关闭.任何提示?