在父页面查找html元素
if($(".buy_gift_btn",window.parent.document).length>0){
if($(".buy_gift_btn",window.parent.document).length>0){
if(data.canBuyGiftNum==0){
$(".buy_gift_btn",window.parent.document).html("礼包购买");
}else{
$(".buy_gift_btn",window.parent.document).html("礼包购买("+data.canBuyGiftNum+")");
}
}
window.parent.document.form 在父页面的表单元素下查找