第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

正在回答

1 回答

你可以看一下talk.js文件中,輸入指令放在請(qǐng)求的“content”屬性中的,而回復(fù)信息是在服務(wù)端直接通過Response的PrintWriter對(duì)象 直接輸出回瀏覽器的

talk.js文件中:

$.ajax({

url : $("#basePath").val() + "talk/autoReplyMessage",

type : "POST",

dataType : "text",

timeout : 10000,

success : function (data) {

appendDialog("talk_recordboxme","My賬號(hào)",content);

appendDialog("talk_recordbox","小機(jī)",data);

$("#content").val("");

render();

},

data : {"content":content}


我的Controller文件中:

@RequestMapping(value="/autoReplyMessage")

public ModelAndView getMessagesByCommand(@RequestParam("content") String command,

HttpServletResponse response) {

response.setContentType("text/html;charset=utf-8");

PrintWriter out = null;

try {

out = response.getWriter();

String reply = messageService.getMessagesByCommand(command);

out.print(reply);

out.flush();

out.close();

} catch (IOException e) {

// TODO Auto-generated catch block

e.printStackTrace();

}

return null;

}



希望能幫到你。

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
通過自動(dòng)回復(fù)機(jī)器人學(xué)Mybatis---基礎(chǔ)版
  • 參與學(xué)習(xí)       107414    人
  • 解答問題       831    個(gè)

微信公眾號(hào)自動(dòng)回復(fù)功能學(xué)習(xí)Mybatis,基礎(chǔ)教程加案例實(shí)戰(zhàn)方式學(xué)習(xí)

進(jìn)入課程

一點(diǎn)不懂得問題

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)