找回密码
 快速注册
搜索
查看: 51|回复: 1

查找工具

[复制链接]

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

hbghlyj 发表于 2023-5-1 04:05 |阅读模式
发帖页面草稿本添加查找工具
Window.find()的一个包装
对<textarea>无效😥
  1. $('post_extra_tb').innerHTML+=String.raw`<label id="extra_search_b" onclick="showExtra('extra_search')"><span id="extra_search_chk">查找替换</span></label>`;$('post_extra_c').innerHTML+=String.raw`<div class="exfm cl" style="display:none" id="extra_search_c"><table cellspacing="0" cellpadding="0"><tbody><tr><td><input type="text" class="px vm" value="" name="searchtext" size="20" onkeydown="if(event.keyCode==13) return false;"><a href="javascript:;" id="search_exec" class="xi2" onclick="$('search_output').textContent = 'String found? '+window.find(postform.searchtext.value,postform.aCaseSensitive.checked,postform.aBackwards.checked,postform.aWrapAround.checked)">Find in page</a><div id="search_output">String found? true</div></td></tr><tr><td><label><input type="checkbox" class="pc" checked name="aWrapAround">wrap around </label><label><input type="checkbox" class="pc" name="aBackwards">backward </label><label><input type="checkbox" name="aCaseSensitive" class="pc">case-sensitive</label></td></tr></tbody></table></div>`
复制代码
效果(简陋):
output.gif
Firefox试了下,
Wrap around和Backward都好像不能用
怎么回事?

3149

主题

8386

回帖

6万

积分

$\style{scale:11;fill:#eff}꩜$

积分
65391
QQ

显示全部楼层

 楼主| hbghlyj 发表于 2023-5-6 06:10

Mathpix Snip Web编辑器

Mathpix Snip Web编辑器查找替换工具挺好用的 Screenshot 2023-05-05 at 23-09-30 Editing worksheet4_metric_spaces - Snip Web.png

手机版|悠闲数学娱乐论坛(第3版)

GMT+8, 2025-3-4 15:53

Powered by Discuz!

× 快速回复 返回顶部 返回列表