1、获取光标位置:$(elem).iGetFieldPos();
2、设置光标位置:$(elem).iSelectField(start);
3、选中指定位置内的字符:$(elem).iSelectField(start,end);
4、选中指定的字符:$(elem).iSelectStr(str);
5、在光标之后插入字符串:$(elem).iAdd(str);
6、删除光标前面(-n)或者后面(n)的n个字符:$(elem).iDel(n);
- 1
- 2
- 3
- 4
- 5
- 6
2016年04月16日 22:38:09
阅读数:2248
版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u012679583/article/details/51170780
个人分类:
javascript+css+html
|
|