<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> <script> window.onload = function(){ var oText1 = document.getElementById("txt1"); var oText2 = document.getElementById("txt2"); oText1.onkeydown = function(ev){ var oEvent = ev || event; //如果回车的时候 将oText1的值赋给 oText2的值 ctrlKey shiftKey altKey if(oEvent.keyCode == 13 && oEvent.ctrlKey) { oText2.value +=oText1.value +" "; oText1.value = ""; } } } </script> </head> <body> <input type="text" id="txt1" /><br /><br /> <textarea name="" rows="10" cols="20" id="txt2"></textarea> </body> </html>