<script src="http://127.0.0.1/study/jquery.min.js"></script>
<script>
var a = new Array(1,2,3);
$.each( a, function(i, n){
document.write( "元素[" + i + "] : " + n + "<br>" );
})
document.close();
</script>
<script src="http://127.0.0.1/study/jquery.min.js"></script>
<script>
var a = new Array(1,2,3);
$.each( a, function(i, n){
document.write( "元素[" + i + "] : " + n + "<br>" );
})
document.close();
</script>
");
window.frames["iframe1003"].document.write(decodeHtml(code1003));
window.frames["iframe1003"].document.close();
//load和下面的非load必需并存,因为如果代码用到了jquery就必须使用load的方式
$(window.frames["iframe1003"]).load(function(){
$("#iframe1003").height($("#iframe1003").contents().find("body").height()+showittryitheight);
});
$("#iframe1003").height($("#iframe1003").contents().find("body").height()+showittryitheight);
alreadyWriteCode1003 = code1003;
$("#rendering1003").hide();
$("#rendered1003").show();
}
var tRereshRetry2DemoPanel1003 = setInterval(rereshRetry2DemoPanel1003,1000);
var binded1003 = false;
$("textarea#stepcodeTextarea1003").keyup(function(){
if(!binded1003){
$(window).bind('beforeunload',function(){
binded1003 = true;
return "xxxx";
});
}
var newCode = $(this).val()
code1003 = newCode;
/*below code is replaced by function rereshRetry2DemoPanel()*/
// if(code1003!=newCode){
// window.frames["iframe1003"].document.write("
<script src="http://127.0.0.1/study/jquery.min.js"></script>
<script>
var a = new Array(5,2,4,2,3,3,1,4,2,5);
a.sort();
$.unique(a);
$.each( a, function(i, n){
document.write( "元素[" + i + "] : " + n + "<br>" );
})
document.close();
</script>
<script src="http://127.0.0.1/study/jquery.min.js"></script>
<script>
var a = new Array(5,2,4,2,3,3,1,4,2,5);
a.sort();
$.unique(a);
$.each( a, function(i, n){
document.write( "元素[" + i + "] : " + n + "<br>" );
})
document.close();
</script>
");
window.frames["iframe1004"].document.write(decodeHtml(code1004));
window.frames["iframe1004"].document.close();
//load和下面的非load必需并存,因为如果代码用到了jquery就必须使用load的方式
$(window.frames["iframe1004"]).load(function(){
$("#iframe1004").height($("#iframe1004").contents().find("body").height()+showittryitheight);
});
$("#iframe1004").height($("#iframe1004").contents().find("body").height()+showittryitheight);
alreadyWriteCode1004 = code1004;
$("#rendering1004").hide();
$("#rendered1004").show();
}
var tRereshRetry2DemoPanel1004 = setInterval(rereshRetry2DemoPanel1004,1000);
var binded1004 = false;
$("textarea#stepcodeTextarea1004").keyup(function(){
if(!binded1004){
$(window).bind('beforeunload',function(){
binded1004 = true;
return "xxxx";
});
}
var newCode = $(this).val()
code1004 = newCode;
/*below code is replaced by function rereshRetry2DemoPanel()*/
// if(code1004!=newCode){
// window.frames["iframe1004"].document.write("
<script src="http://127.0.0.1/study/jquery.min.js"></script>
<script>
var a = new Array(1,2,3,4,5,6,7,8);
document.write($.inArray(9,a));
document.close();
</script>
<script src="http://127.0.0.1/study/jquery.min.js"></script>
<script>
var a = new Array(1,2,3,4,5,6,7,8);
document.write($.inArray(9,a));
document.close();
</script>
");
window.frames["iframe1005"].document.write(decodeHtml(code1005));
window.frames["iframe1005"].document.close();
//load和下面的非load必需并存,因为如果代码用到了jquery就必须使用load的方式
$(window.frames["iframe1005"]).load(function(){
$("#iframe1005").height($("#iframe1005").contents().find("body").height()+showittryitheight);
});
$("#iframe1005").height($("#iframe1005").contents().find("body").height()+showittryitheight);
alreadyWriteCode1005 = code1005;
$("#rendering1005").hide();
$("#rendered1005").show();
}
var tRereshRetry2DemoPanel1005 = setInterval(rereshRetry2DemoPanel1005,1000);
var binded1005 = false;
$("textarea#stepcodeTextarea1005").keyup(function(){
if(!binded1005){
$(window).bind('beforeunload',function(){
binded1005 = true;
return "xxxx";
});
}
var newCode = $(this).val()
code1005 = newCode;
/*below code is replaced by function rereshRetry2DemoPanel()*/
// if(code1005!=newCode){
// window.frames["iframe1005"].document.write("