| << Click to Display Table of Contents >> 文本组件的脚本函数 |     | 
| 函数 | 说明 | 举例 | 
|---|---|---|
| getCol | 获得当前文本组件绑定的字段信息 | var col1=Text1.binding.getCol(); //无参数,Text1和Text2两个文本组件均需要已绑定数据 Text2.binding.setCol(col1); //设置Text2绑定的数据为col1 | 
| setCol | 给当前文本组件绑定字段 | var col=new BCol("price",DOUBLE,false); var col1=new MeasureCol(SUM,col,null); Text1.binding.setCol(col1); | 
| commit | 展现样式 | Text1.commit = true; | 
| commitScript | 设置提交脚本 | Text1.commitScript = "test"; | 
| data | 给文本组件添加文本 | Text1.data="hello world!"; |