koibi2

Results 5 comments of koibi2

可以参考这个: ``` let tc = document.getElementById('comment_text'); tc.focus(); //开始插入 let tclen = tc.value.length; //计算表情长度。 var emoji_length = emoji.length; if (typeof document.selection != "undefined") { document.selection.createRange().text = emoji; } else { //记录光标的起始位置...

> @koibi2 is it a solution block of code ? or a source of an issue? this is a solution block of code: >search where is the cursor, >then let...

> @koibi2 这段代码是添加到哪里的?我添加到源码里也不起作用啊,报错。 > ![image](https://user-images.githubusercontent.com/12168167/55527742-f8437b80-56cc-11e9-92fa-66e822d72380.png) [汗]我这是其他代码片的示例。具体就是“获取光标位置”那几行代码,加进去就行了。

> @koibi2 你好,请问一下你知道怎么在jsp中使用这个emoji组件吗? 我放弃用这个组件了。帮不上你的忙。

![image](https://user-images.githubusercontent.com/34370367/65667402-40d36480-e072-11e9-841c-83803d0928e2.png) 图为npm,放弃了。