response設(shè)置返回json response怎么返回json數(shù)據(jù)?
response怎么返回json數(shù)據(jù)?讓我給你一個線索參考。$code,“error”=>$data]返回response::JSON($response,$code)}如何用django返回一個
response怎么返回json數(shù)據(jù)?
讓我給你一個線索參考。$code,“error”=>$data]返回response::JSON($response,$code)}
如何用django返回一個頁面,并傳遞json數(shù)據(jù),而不是僅僅返回json數(shù)據(jù)?
是
引入renderfromdjango.com快捷方式當(dāng)import render返回時,只需將httpresponse更改為return render,類似于return render(request,“/索引.html“,{”用戶名“:”喬安娜“,”圖片“:”001.png “})