Open youngwind opened 8 years ago
此插件基于jquery,仓库在这儿,主要用途如下
bower install jquery --save bower install jquery-cursor --save
<script src="jquery.js"><script> <script src="jquery-cursor.js"><script>
$('#textAreaId').cursor({ "text":"这是插入的一些文字,哪些位置被选中由下面两个参数决定", "beginPos":2, // 开头从0开始计数 "endPos":5 // 如果省略,则从beginPos一直选中到text的结尾 );
参考资料: https://gist.github.com/quexer/3619237
项目说明
此插件基于jquery,仓库在这儿,主要用途如下
使用方法
1. 安装
2. 引入
3. 使用
3.1 基本用法
参考资料: https://gist.github.com/quexer/3619237