摘要: (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 阅读全文
posted @ 2013-11-08 10:25 死神的遗迹 阅读(370) 评论(0) 推荐(0) 编辑