以下为引用的内容:
无标题文档var i=0;
var tdata={head:[{name:'名词'},{name:'数量'}],data:[{name:'语文',count:12},{name:'数学',count:30}]};
function addNewrow(){
$("#tt").append("
"+i+"删除");i++;
}
function removeThis(ids){
$("#tr_"+ids).remove();
i--;
}
function reposition(){
$("#bottomdiv").css("margin-top",$(window).height()-$("#bottomdiv").height()-2);
$("#bottomdiv").css("margin-left",$(window).width()-$("#bottomdiv").width()-2);
$("#tt tbody").append("
");$.each(tdata.head,function(i,row){
$("#tt tbody").append("
"+row.name+"");});
$("#tt tbody").append("
");$.each(tdata.data,function(i,row){
$("#tt tbody").append("
"+row.name+""+row.count+"");});
}
$(function (){reposition();
$("#div_animate").animate({
height: 'toggle', opacity: 'toggle'
}, "slow");
$("#div_animate").animate({
height: 'show', opacity: 'show'
}, "slow");
});
var zoom=10;
function maxZoom(){
zoom+=5;
$("#zoomdiv").css("zoom",zoom/10);
}
function minZoom(){
if(zoom<=0){
zoom=5;
}else{
zoom-=5;
}
$("#zoomdiv").css("zoom",zoom/10);
}
var inobj=null;
function inputTime(){
}
body{ margin:0 0 0 0;}
button{padding-top:3px;}
input {padding-top:3px;}
#ddiv{overflow:auto;float:left;width:800px;height:300px;}
增加放大缩小
document.write(""+(i<10?("0"+i):i)+"");
}
document.write(""+(i<10?("0"+i):i)+"");
}