(编辑:jimmy 日期: 2024/10/14 浏览:2)
就是现在文本域里有一段文字,当你选种其中几个字后点击一个按钮或者链接会弹出一个对话框,对话框的信息就是你选中的文字 哪位老大能解决的呀?请多多帮忙!!!谢谢 <"button" value="showSelection" onclick="alert(document.selection.createRange().text)">
就是现在文本域里有一段文字,当你选种其中几个字后点击一个按钮或者链接会弹出一个对话框,对话框的信息就是你选中的文字 哪位老大能解决的呀?请多多帮忙!!!谢谢 <"runEx('runcode55821')" type="button" value="运行代码" class="fn-butt" /> [Ctrl+A 全选 注:引入外部Js需再刷新一下页面才能执行] 实例三:选中Input中的文本 对textarea中的内容,进行选中后,加效果 选中我,点击加粗<"runEx('runcode33795')" type="button" value="运行代码" class="fn-butt" /> [Ctrl+A 全选 注:引入外部Js需再刷新一下页面才能执行] 实例四:javascript捕获到选中的网页中的纯文本内容 鼠标取词 <"runEx('runcode73316')" type="button" value="运行代码" class="fn-butt" /> [Ctrl+A 全选 注:引入外部Js需再刷新一下页面才能执行]