用纯字符画出表格。Draw tables with chars.
@param {Dom} 父级dom节点
@param {Object} 描述表格内容对象
drawTables.init(document.getElementById('ctn'),{title: ['name','age','sex'],direction: [0,'age'],data: [['haasdfha',10,{content: 'heihei',col: 4,row: 3}],['hehe',10],['haasdfha',10,'male'],[{content: 'heihei',col: 4,row: 3},{content: 'heihei',col: 4,row: 3},],[{content: 'heihei',col: 4,row: 3},{}]]});|-----------------------------------------------------------------------|
| name | age | sex | | | | | | | | | | |
|----------|-----|--------|--|--------|--|------|--|--------|--|--|--|--|
| haasdfha | 10 | heihei | | | | | | | |
|----------|-----| |------|--|--------|--|--|--|--|
| hehe | 10 | | | | | | | | |
|----------|-----| |------|--|--------|--|--|--|--|
| haasdfha | 10 | | male | | | | | | |
|----------|-----|--------|--|--------|--|------|--|--------|--|--|--|--|
| heihei | heihei | | | | | |
| | |--------|--|--|--|--|
| | | heihei | |
| | | |--|
| | | | |
|----------|-----|--------|--|--------|--|------|--| |--|
| | | | | | | | | | |
|-----------------------------------------------------------------------|