UI/JS/Publish.js
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var PublishpageSize=3;
var publishfields=["pubid","pubperson","pubtitle","pubdate","pubcontent"];
var publishstore=new Ext.data.Store({
proxy:new Ext.data.HttpProxy(
{
url:"DATA/Publish/GetPublishInfoaspx.aspx",
method:"POST"
}),
reader:new Ext.data.JsonReader(
{
fields:publishfields,
root:"data",
id:"pubid",
totalProperty:"totalCount"
})
});
publishstore.setDefaultSort('pubid','desc');
publishstore.load({params:{start:0,limit:PublishpageSize}});
//--------------------------------------------------列选择模式
var publishsm = new Ext.grid.RowSelectionModel({
});
//--------------------------------------------------列头
var publishcm = new Ext.grid.ColumnModel([
]);
var publishinfosgrid = new Ext.grid.GridPanel({
store:publishstore,
sm:publishsm,
cm:publishcm,
autoHeight:true,
//height:410,
width:225,
loadMask:true,
stripeRows:true,
//trackMouseOver:false,
//autoExpandColumn:7,
//超过长度带自动滚动条
autoScroll:true,
border:false,
viewConfig: {
forceFit:true,
enableRowBody:true,
showPreview:true,
getRowClass :function(record, rowIndex, p,store){
if(this.showPreview){
p.body = String.format('<br><li><b><font color=#436EEE>{0}</font></b></li><br><br><b>Author:</b><font color=red>{1}</font> <b>Date:</b><font color=#B03060>{2}</font><br><br> {3}<br><br><hr style="border : 1px dotted buttonface;width:90%" align="left">',
record.data.pubtitle, record.data.pubperson,record.data.pubdate,record.data.pubcontent);
return 'x-grid3-row-expanded';
}
return 'x-grid3-row-collapsed';
}
},
//分页
bbar:new Ext.PagingToolbar({
后面还有 18 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
