|
发表于 2015-3-3 09:02:44
|
显示全部楼层
可以使用justep.Request.sendBizRequest2() 效果跟ajax 一样的。
例如:
var options = {};
var param = new justep.Request.ActionParam();
param.setString('para_string', '');
param.setInteger('para_integer', 11);
param.setFloat('para_float', 1.345);
param.setDateTime('para_datetime', new Data());
var process = "/demo/misc/process/simpleAction/simpleActionProcess";
var activity = "mainActivity";
options.contentType = 'application/json';
options.process = process;
options.activity = activity;
options.dataType = "json";
options.parameters = param;
options.action = "demoparaAction";
options.callback = function(data){
if(data.state){
//成功
}else{
//失败
justep.Request.errorMessage(resultData, "执行失败!", null, null, 'json');
}
};
var result = justep.Request.sendBizRequest2(options);
|
|