vue axios跨域請求 response怎么發(fā)送json數(shù)據(jù)?
response怎么發(fā)送json數(shù)據(jù)?首先,以map/string/XML格式封裝數(shù)據(jù)。例如,string putdata=“這是我要發(fā)送的數(shù)據(jù)”jsonobject JSON=new jsonobj
response怎么發(fā)送json數(shù)據(jù)?
首先,以map/string/XML格式封裝數(shù)據(jù)。例如,string putdata=“這是我要發(fā)送的數(shù)據(jù)”jsonobject JSON=new jsonobject()json.put文件(“datas”,putData)打印輸出=響應(yīng).getWriter() 輸出.println( json.toString())