fieldsmerged.js

来自「javascript 很酷的类库」· JavaScript 代码 · 共 18 行

JS
18
字号
isc.ListGrid.create({    ID: "countryList",    width:500, height:224, alternateRecordStyles:true, showAllRecords:true,    fields:[    // move countryCode before country name and replace with flag image/title        {name:"countryCode", title:"Flag", width:40, type:"image", imageURLPrefix:"flags/16/", imageURLSuffix:".png"},        {name:"countryName"},    // change title and alignment of independence date        {name:"independence", title:"Nationhood", align:"center"},    // format population number        {name:"population", formatCellValue:"isc.Format.toUSString(value)"},    // format GDP as $M instead of $B        {name:"gdp", title:"GDP ($M)", formatCellValue:"(value*1000).toUSString()"}    ],    dataSource: countryDS,    autoFetchData: true})

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?