回车发送
This commit is contained in:
parent
32cda4e724
commit
8c248506c0
@ -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,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user