Java代码
//普通属性判断
if($('#btn_customer').attr('title').replace(/(^\s*)|(\s*$)/g, "") == "2"){
//返回true
}else{
//false
}
//checkbox
if($("#appo").is(":checked")){
//选中true
}esle{
//false
}
//$.post提交
var param = {};
$('#currTable').find('input,select').each(function(){
param[this.name] = this.value;
});
param['ative'] = 'customer';
$.post(url,param,function(data){
if(data.result == 1){
alert('OK');
}
if(data == null){
alert('NO!');
}
},'json');
//普通属性判断
if($('#btn_customer').attr('title').replace(/(^\s*)|(\s*$)/g, "") == "2"){
//返回true
}else{
//false
}
//checkbox
if($("#appo").is(":checked")){
//选中true
}esle{
//false
}
//$.post提交
var param = {};
$('#currTable').find('input,select').each(function(){
param[this.name] = this.value;
});
param['ative'] = 'customer';
$.post(url,param,function(data){
if(data.result == 1){
alert('OK');
}
if(data == null){
alert('NO!');
}
},'json');
|