if(typeof document.selection !== "undefined"){//IE
$("#commentTextarea").focus();
document.selection.createRange().text = "insertText";
}else{
$("#commentTextarea").val($("#commentTextarea").val() + "insertText").focus();
}
就是这么简单!