關於Ajax返回字符串的問題

       在Ajax請求中,規定dataType爲"json"時,html        對應的controller的返回值的正確格式爲 :ajax        return "{\"username\":\""+username+"\"}";必定是{"aa":"bb"}的格式;json        可是有的時候這種格式:return  "{\"unitCde\":"+unitCde+"}
相關文章
相關標籤/搜索