摘要:
方法一:1//#region--文本框TextArea光标相关2varPos={3//IE版本号4getIEVer:function(){5varmatch=navigator.appVersion.match(/MSIE\s+\d+.0;/);6if(match==null)return-1;7return+match[0].match(/\d+/)[0];8},9getPos:function(textBox){10if(document.selection){11varrange=document.selection.createRange();12varrange_all=docume 阅读全文