databoundfetch.js

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

JS
37
字号
isc.ListGrid.create({    ID: "countryList",    width:500, height:224, alternateRecordStyles:true,    dataSource: worldDS,    // display a subset of fields from the datasource    fields:[        {name:"countryCode"},        {name:"countryName"},        {name:"capital"},        {name:"continent"}    ],    sortFieldNum: 1, // sort by countryName    dataPageSize: 50,    drawAheadRatio: 4})isc.IButton.create({    left:0, top:240, width:140,    title:"Fetch Code: US",    click:"countryList.fetchData({countryCode:'US'})"})isc.IButton.create({    left:160, top:240, width:140,    title:"Fetch Continent: Europe",    click:"countryList.fetchData({continent:'Europe'})"})isc.IButton.create({    left:320, top:240, width:140,    title:"Fetch All",    click:"countryList.fetchData()"})

⌨️ 快捷键说明

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