|
程序运行时,提示JUSTEP230109;core.min.js:71 POST http://localhost:8080/x5/UI2/v_2c3081ef4c73499f992e007a24c9b338l_zh_CNs_des…s=/am/barcode/process/machinefile/machinefileProcess&activity=mainActivity net::ERR_CONTENT_DECODING_FAILED
machinefileProcess、mainActivity,都有创建;找不到错误原因,请大神帮忙看看!
js相关代码:
Model.prototype.grid3BeforeInit = function(event) {
var machineData = this.comp('machineData');
var model = 'model';
var pa = "";
var param = new biz.Request.ActionParam();
param.setString("model", model);
param.setString("pa", pa);
console.log(param);
biz.Request.sendBizRequest({
context : this.getContext(),
contentType : "application/json",
dataType : "json",
process : "/am/barcode/process/machinefile/machinefileProcess",
activity : "mainActivity",
action : "queryMachine_fileAction",
parameters : param,
callback : function(result) {
if (result.state) {
if (result.response === 'error') {
justep.Util.hint('接口调用失败!');
} else {
machineData.loadData(eval(result.response));
}
} else {
new Error("未读到接口!" + result.response.message);
}
}
});
};
|
-
|