⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 databoundupdate.js

📁 javascript 很酷的类库
💻 JS
字号:
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: 0, // sort by countryCode    dataPageSize: 50,    autoFetchData: true,    selectionType: "single"})isc.IButton.create({    left:0, top:240, width:150,    title:"Continent > Europe",    click: function () {        if (!countryList.getSelectedRecord()) return; // nothing selected        var updatedRecord = isc.addProperties(            countryList.getSelectedRecord(),            {continent:"Europe"}        );                countryList.updateData(updatedRecord);    }})isc.IButton.create({    left:170, top:240, width:150,    title:"Continent > Asia",    click: function () {        if (!countryList.getSelectedRecord()) return; // nothing selected        var updatedRecord = isc.addProperties(            countryList.getSelectedRecord(),            {continent:"Asia"}        );                countryList.updateData(updatedRecord);    }})

⌨️ 快捷键说明

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