<script type="text/javascript" > var getTd=document.getElementById("myTable"); rowsLength=getTd.rows.length; var theDate ; for(var i=1;i<rowsLength;i++) { var std=getTd.rows[i].cells[2].innerText; var stdVlue=std.replace(/天/gi,''); stdVlue=Number(stdVlue); //getTd.rows[i].cells[11].innerText=stdVlue; for(var g=rowsLength;g>=2;g--) { var std2=getTd.rows[g].cells[11].innerText; var stdVlue2=std2.replace(/天/gi,''); stdVlue2=Number(stdVlue2); theDate=stdVlue2+stdVlue; } getTd.rows[i].cells[11].innerText=stdVlue; document.write(stdVlue); document.write("<br/>"); document.write(theDate); document.write("<br/>"); }</script>
添加回答
举报
0/150
提交
取消