1
我正在使用colorbox打開一個窗口,該窗口出現一個帶有類別的網格。選擇複選框後,我在父窗口繪製類別。到目前爲止還是不錯的。colorbox檢查父元素存在
我的問題是,抽籤之前,我檢查類別中的父窗口存在,但它不工作
if($('#cat-2', window.parent.document).length==0)
$('#categories', window.parent.document).append(newdata);
我失去了一些東西。