摘要:
(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 = $t.selectionStart;var endPos = $t 阅读全文