利用JS取得DIV中选中的文本值
摘要:引用自http://everhow.blog.163.com/blog/static/357377320089271142979/<script>function cc(){var g = document.selection.createRange();if(g.text.length>1 && g.text.length<=6){window.alert(g.text);}}</script><div id="d1" onmouseup="cc();">此处显示 id "d1&
阅读全文
posted @
2011-10-13 10:42
成就地带
阅读(2180)
推荐(0)