小编Gan*_*zis的帖子

java.lang.ClassCastException:无法强制转换java.util.LinkedHashMap

JavaScript的

$.ajax({     
    headers :  {  
        'Accept' :  'application/json' , 
        'Content-Type' :  'application/json'  
    },
    url         :  "/realgrid/product/addOd.do",
    type        : "post",
    data        : JSON.stringify(JsonOrderDetailValues),
    dataType    : "json",
    success     : function(data){
        var json = eval(data);
        if (json.result == 1) {
                alert("insert.");
        }else if(json.result == 2){
                alert("update.")
        }else {
            alert("error.");
        }
    },
    error : function(request,status,error){
        alert("code:"+request.status+"\n"+"error:"+error);
    }
});
Run Code Online (Sandbox Code Playgroud)

执行console.log(JsonOrderDetailValues)

[Object, Object, Object, Object]
0: Object
categoryCode: "AC-MV"
categoryName: undefined
costPrice: 168050
date: undefined
modelCode: "YP-GB70"
modelName: undefined
no: 1
number: "201309120932"
total: 88
totalPrice: …
Run Code Online (Sandbox Code Playgroud)

java spring

6
推荐指数
1
解决办法
2万
查看次数

标签 统计

java ×1

spring ×1