摘要: (function ($) { $.fn.extend({ insertAtCaret : function (myValue) { var $t = $(this)[0]; if (document.selection) { this.focus(); sel = document.selection.createRange(); sel.text = myValue; this.focus(); } else if ($t.selectionStart || $t.selectionStart == '0') { var startPos... 阅读全文
posted @ 2012-12-13 16:24 kingwell 阅读(569) 评论(0) 推荐(0) 编辑