Created
October 21, 2012 13:10
-
-
Save binjoo/3926914 to your computer and use it in GitHub Desktop.
JAVASCRIPT:清空表格
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**清空表格**/ | |
function clearLocationTable(){ | |
var objTable = document.getElementById("locationTable"); | |
var length = objTable.rows.length; | |
for (var i = 1; i<length; i++){ | |
objTable.deleteRow(1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment