遇到的问题报错是Invalid left-hand side in assignment,是下面点击保存时if判断语句出现错误
var BasicDate = function(userId){
var formPanel = new Ext.FormPanel({
id:'updateBP',
url : __ctxPath+ '/system/updateBPAppUser.do',
layout : 'form',
frame : true,
defaults : {
widht : 400,
anchor : '100%,100%'
},
defaultType : 'textfield',
items : [{
name : 'appUserUserId',
id : 'appUserUserId',
xtype:'hidden',
value : userId
},{
xtype:'checkbox',
hiddenName:'printBill',
id : 'printBillApp',
fieldLabel:'是否打印'
},{
xtype:'checkbox',
hiddenName:'informApp',
id : 'informAppApp',
fieldLabel:'是否传入app'
}]
});
var makeSure = new Ext.Window({
title:'基本数据',
id:'makeSureWin',
width : 300,
height : 175,
modal: true,
layout : 'anchor',
bodyStyle : 'padding:5px;',
buttonAlign : 'center',
items:[formPanel],
buttons : [{
text : '保存',
iconCls:'btn-save',
handler : function() {
if(Ext.getCmp("printBillApp").getValue()){
Ext.getCmp("printBillApp").getValue()=1;
}else{
Ext.getCmp("printBillApp").getValue()=0;
};
if(Ext.getCmp("informAppApp").getValue()){
Ext.getCmp("informAppApp").getValue()=1;
}else{
Ext.getCmp("informAppApp").getValue()=0;
};
alert(Ext.getCmp("printBillApp").getValue());
var fp=Ext.getCmp('updateBP');
fp.getForm().submit({
method: 'post',
waitMsg : '正在提交数据...',
success : function(fp,action) {
Ext.ux.Toast.msg('操作信息', '操作成功');
makeSure.close();
},failure : function(fp,action) {
Ext.ux.Toast.msg('错误提示',action.result.msg);
Ext.getCmp('updateBP').getForm().reset();
}
});
}
}, {
text : '取消',
iconCls : 'btn-cancel',
handler : function() {
makeSure.close();
}
}]
});
makeSure.show();
}
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。
没有人吗,有没有什么方法可以让我传输1/0,我后台获取数值的方法用的是getRequest().getParameter("printBill"),是否有发放可以优化up
submit参数中增加个params:
<preclass="brush:js;toolbar:true;auto-links:false;">fp.getForm().submit({method:'post',params:{newStatus:'1'},