在光标选中位置插入文字js
摘要:
//调用方法insertText(document.getElementById('codeTextarea'), "{GD_" + name + "}")//获取文本框中光标的位置function insertText(obj, str) { if (document.selection) ... 阅读全文
posted @ 2015-08-12 17:14 咸菜v 阅读(462) 评论(0) 推荐(0) 编辑
posted @ 2015-08-12 17:14 咸菜v 阅读(462) 评论(0) 推荐(0) 编辑