摘要:
1、获取选中的文字:document.selection.createRange().text; IE9以下使用window.getSelection().toString(); 其他浏览器使用$('p').mouseup(function(){ var txt = window.getSel... 阅读全文
摘要:
hover:鼠标进入元素的子元素时不会触发‘鼠标移开’的事件;mouseenter、mouseleave:效果与hover相同;mouseover: 鼠标进入元素和进入它的子元素时都会触发‘mouseover’的事件,即使添加了event.stopPropagation();return false... 阅读全文