效果不错,省了很多事,避免了每次写table。不过仅限于标准表格。:)
表格类的原型函数:用于以表格方式表现从xml中读取的数据//-------------------------------------------------------
// Yang Xiaodong
// IRSA, CAS
//-------------------------------------------------------
//Class :DataTable
//Purpose :provides a table class
//-------------------------------------------------------
//Calls :None
//Called by :None
//-------------------------------------------------------
//Arguments :tableTitles the Column or Row titles of table
// tableValues A 2 dimension Array to represent values in table
// alignDirect the title align direct of table, 0 is horizontal or titles in coloumns, 1 is vertical or titles in rows
//Globals :None
//Returns :table element
//-------------------------------------------------------
//Notes :None
//-------------------------------------------------------
//History :2007/10/27 1.0
//=======================================================