拆卸器un texto seleccionado luego de hacer doble clic con el鼠标

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了拆卸器un texto seleccionado luego de hacer doble clic con el鼠标相关的知识,希望对你有一定的参考价值。

  1. function clearSelection() {
  2. if(document.selection && document.selection.empty) {
  3. document.selection.empty();
  4. } else if(window.getSelection) {
  5. var sel = window.getSelection();
  6. sel.removeAllRanges();
  7. }
  8. }
  9. $(element).bind('dblclick',function(event){
  10. //hacer algo
  11. clearSelection();
  12. });

以上是关于拆卸器un texto seleccionado luego de hacer doble clic con el鼠标的主要内容,如果未能解决你的问题,请参考以下文章

css Modificar estilo de un texto seleccionado。

css Modificar estilo de un texto seleccionado。

csharp muestra un menu de texto para poder manipular algun texto seleccionado

PHP Pintar un texto(亮点)

javascript deshabilitar un boton cambiar el texto de un boton,deshabilitar quontrol。 permiteEscritur

css Cambiar estilo del texto de un placeholder。