Extjs remove怎样用,例子如下: 急急急急急急急急急急急!~~~~~~~~~~~
varTopicRecord=Ext.data.Record.create([{name:'CODING_GRADES_ID',mapping:'CODING_GRADE...
var TopicRecord = Ext.data.Record.create([
{name: 'CODING_GRADES_ID', mapping : 'CODING_GRADES_ID'},
{name: 'ATTRIBUTE_NAME', mapping: 'ATTRIBUTE_NAME'},
{name: 'FORMAT_NAME', mapping: 'FORMAT_NAME'},
{name: 'LENGTH_NAME', mapping: 'LENGTH_NAME'},
{name: 'COVER_NAME', mapping: 'COVER_NAME'},
{name: 'REPLACE_NAME', mapping: 'REPLACE_NAME'}
]);
var myNewRecord = new TopicRecord({
CODING_GRADES_ID: CODING_GRADES_ID,
ATTRIBUTE_NAME: '',
FORMAT_NAME: '',
LENGTH_NAME: '',
COVER_NAME: '',
REPLACE_NAME: ''
});
if(CODING_GRADES_ID<3){
coding_ds.add(myNewRecord);
}else{
//coding_ds.remove(myNewRecord);
} 展开
{name: 'CODING_GRADES_ID', mapping : 'CODING_GRADES_ID'},
{name: 'ATTRIBUTE_NAME', mapping: 'ATTRIBUTE_NAME'},
{name: 'FORMAT_NAME', mapping: 'FORMAT_NAME'},
{name: 'LENGTH_NAME', mapping: 'LENGTH_NAME'},
{name: 'COVER_NAME', mapping: 'COVER_NAME'},
{name: 'REPLACE_NAME', mapping: 'REPLACE_NAME'}
]);
var myNewRecord = new TopicRecord({
CODING_GRADES_ID: CODING_GRADES_ID,
ATTRIBUTE_NAME: '',
FORMAT_NAME: '',
LENGTH_NAME: '',
COVER_NAME: '',
REPLACE_NAME: ''
});
if(CODING_GRADES_ID<3){
coding_ds.add(myNewRecord);
}else{
//coding_ds.remove(myNewRecord);
} 展开
1个回答
名片
2024-10-28 广告
2024-10-28 广告
作为优菁科技(上海)有限公司的一员,Altair HyperWorks是我们重点代理的CAE软件套件。该软件以其全面的仿真能力、丰富的建模工具和高效的优化设计功能著称,广泛应用于汽车、航空航天、能源及电子等行业。HyperWorks通过集成...
点击进入详情页
本回答由名片提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询