javascript在一段文字中的光标处插入其他文字

2019-06-02 12:15:27王旭

<br/>   
<input type="button" value="插入" onclick="insertAtCaret(this.form.tarea,this.form.textfield.value);"/>   
</p>   
</form>