回车发送

This commit is contained in:
unknown 2020-11-30 10:01:43 +08:00
parent 32cda4e724
commit 8c248506c0

View File

@ -224,12 +224,23 @@ function formatDateTime (inputTime) {
sendtext(text) sendtext(text)
$("#shurukuang").val("") $("#shurukuang").val("")
}) })
$("#shurukuang").keyup(function(event){
if(event.keyCode ==13){
//这里填写你要做的事件
//TODO
const text = $("#shurukuang").val()
console.log(text)
sendtext(text)
$("#shurukuang").val("")
}
});
}) })
}); });
function sendjinyan(id,type){ function sendjinyan(id,type){
const m = tim.createTextMessage({ const m = tim.createTextMessage({
to: window.roomid, to: window.roomid,