当前位置: 代码迷 >> Web前端 >> $('BODY',WINDOW.FRAMES[零].DOCUMENT).APPEND($TESTSHOW) BUG
  详细解决方案

$('BODY',WINDOW.FRAMES[零].DOCUMENT).APPEND($TESTSHOW) BUG

热度:703   发布时间:2012-11-23 22:54:33.0
$('BODY',WINDOW.FRAMES[0].DOCUMENT).APPEND($TESTSHOW) BUG
$('BODY',WINDOW.FRAMES[0].DOCUMENT).APPEND($TESTSHOW) BUG

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.8.2
Keywords: Cc:
Blocking: Blocked by:
Description


<!DOCTYPE html PUBLIC "-W3CDTD XHTML 1.0 TransitionalEN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <!-- the same bug at jquery-1.6.3.min.js --> <!-- <script src="jquery-1.6.3.min.js" type="text/javascript" ></script> --> <script src="jquery-1.8.2.min.js" type="text/javascript" ></script> <script type="text/javascript"> $(function(){

var $testShow =$('<span>append jquery object</span>'); var testString ='<span>append String</span>'; $('body',window.frames[0].document).append(testString); try{

$('body',window.frames[0].document).append($testShow);

}catch(e){

alert(e.message); 参数无效

}

}); </script>

</head> <body> <iframe src=""></iframe> </body> </html>
  相关解决方案