# 提供替换的js锚跳不能正常工作

**URL:** <https://forum.freemdict.com/t/topic/35557>\
**Category:** DictTango\
**Created:** [2025 年1 月 4 日 12:40 UTC](https://forum.freemdict.com/t/topic/35557 "2025-01-04T12:40:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

作者： ![amob](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/amob/32/14630_2.png) [@amob](https://forum.freemdict.com/u/amob)\
发布日期： [2025 年1 月 4 日 12:40 UTC](https://forum.freemdict.com/t/topic/35557/1 "2025-01-04T12:40:34Z")

</div>

> [@\[DictTango\] 安卓版 v2.3.9.2](https://forum.freemdict.com/t/topic/2354/1):
>
> Q: 普通查词模式下，LDOCE5++悬浮球内锚跳不能正常工作  
> A: 下载以下文件，然后替换掉原来的LM5Switch.js  
> [FreeMdict Cloud](https://cloud.freemdict.com/index.php/s/6yfXg7pDexTNAng)

提供的js无效，希望能修复下锚跳的问题。

---

<div class="post-metadata">

作者： ![dfL](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/dfl/32/68690_2.png) [@dfL](https://forum.freemdict.com/u/dfL)\
发布日期： [2025 年1 月 4 日 14:09 UTC](https://forum.freemdict.com/t/topic/35557/2 "2025-01-04T14:09:03Z")

</div>

以下为我在github提交issue中开发者的答复，供参考：

> 发现在瀑布流模式下，不支持这种形式的页内跳转。经检查，估计是只支持entry://item/#id？

可以调用\_dtJumpTo(id)函数来实现跳转

> 同时还希望能提供一种检测方式，检测词典在dicttango上运行，以及dicttango处在瀑布流或滑动模式。

可以用if(\_appContext && \_appContext.appName == ‘DictTango’)来判断是否在DictTango, 暂时没有瀑布流或滑动模式的客户端设置，下版本可以加上

---

<div class="post-metadata">

作者： ![amob](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/amob/32/14630_2.png) [@amob](https://forum.freemdict.com/u/amob)\
发布日期： [2025 年1 月 4 日 14:21 UTC](https://forum.freemdict.com/t/topic/35557/3 "2025-01-04T14:21:23Z")

</div>

重点在于，开发者自己亲手改的，特意提供的兼容版都不行了。

---

<div class="post-metadata">

作者： ![dfL](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/dfl/32/68690_2.png) [@dfL](https://forum.freemdict.com/u/dfL)\
发布日期： [2025 年1 月 4 日 15:51 UTC](https://forum.freemdict.com/t/topic/35557/4 "2025-01-04T15:51:00Z")

</div>

可能跟android webview升级有关吧，我看到更新日志里2.3的小版本更新提到一个修复

---

<div class="post-metadata">

作者： ![dfL](https://forumcdn.freemdict.com/user_avatar/forum.freemdict.com/dfl/32/68690_2.png) [@dfL](https://forum.freemdict.com/u/dfL)\
发布日期： [2025 年1 月 4 日 15:52 UTC](https://forum.freemdict.com/t/topic/35557/5 "2025-01-04T15:52:09Z")

</div>

我建议去github提，那里开发者回复比较及时。这里我反馈的一直没人理我，去那边当天就回复了…
