中毒了吗?浏览器的地址栏搜索结果自动从谷歌跳转到bing

逐个插件关闭排除,终于发现

是chrome的插件作怪:

经过排查,是一款

Vspeed Controller

的插件引起的。

这个插件只是让视频播放速度加快,减慢。

没啥用的。于是果断卸载。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要实现antd anchor根据浏览器搜索栏中的id自动跳到页面相应id位置,你可以使用React Router的HashRouter组件和antd的Anchor组件相结合。具体实现步骤如下: 1. 在React Router的HashRouter组件中包裹需要跳转的页面内容,并将需要跳转的页面内容的id作为路由的哈希值。 2. 在antd的Anchor组件中使用Link组件,并设置href属性为需要跳转的页面内容的id。 3. 在antd的Anchor组件中设置Target属性为需要跳转的页面内容的id。这样,当用户在浏览器搜索栏中输入页面内容的id并按下回车键时,页面就会自动滚动到相应的位置。 示例代码如下: ``` import { Anchor } from 'antd'; import { HashRouter, Route } from 'react-router-dom'; const { Link } = Anchor; function App() { return ( <HashRouter> <Anchor targetOffset="64"> <Link href="#section1" title="Section 1" /> <Link href="#section2" title="Section 2" /> <Link href="#section3" title="Section 3" /> </Anchor> <Route path="/" exact> <div id="section1"> // Section 1 content </div> </Route> <Route path="/section2"> <div id="section2"> // Section 2 content </div> </Route> <Route path="/section3"> <div id="section3"> // Section 3 content </div> </Route> </HashRouter> ); } ``` 在这个例子中,当用户在浏览器搜索栏中输入“/#/section2”并按下回车键时,页面就会自动滚动到id为“section2”的位置。注意,这里的Target属性设置为64,是因为Antd的导航栏默认高度为64px。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值