0

我有个问题。cms TYPO3 在 a-Tag / href 中构建 url:我使用这个移动菜单:mmenu.frebsite.nl

这里是前端html:

<a class="mMenuButton" href="site2.html#menu"></a>

点击后的网址:http://www.domain.com/site2.html#menu

模板 HTML - 关闭/打开按钮:

<a class="mMenuButton" href="#menu"></a>

这里是js:

$(document).ready(function() {

$("#menu").mmenu({
    header: {
        add: true,
        update: true,
        title: "Menü / Startseite",
    },
    offCanvas: {
        position: "top",
        zposition: "front"
    }
})  

});

MMenu 在主页上运行良好!如何删除“site2.html”?谢谢

链接:https ://github.com/BeSite/jQuery.mmenu/issues/184

4

4 回答 4

0

嗯,不,HTML 只是这样:

<a class="mMenuButton" href="#menu"></a>

TYPO3 这样做:

<a class="mMenuButton" href="site2.html#menu"></a>
于 2014-09-30T14:15:53.540 回答
0

感谢您的回答,但我无法删除 href。这是 HTML

<a class="mMenuButton" href="#menu"></a>

href链接可能不起作用!这个js删除了链接,但是点击后跳转到主页上的站点

$(".mMenuButton").attr("href", "#menu");
于 2014-09-30T12:44:41.743 回答
0

I'm struggling to understand your question in honesty, but if your question is as simple as how can you remove the site2.html or change, then just remove it from the href with another linked page or replace with # so it remains on the same page...Again the question makes little sense (to me at least) so not sure if this helps or not.

于 2014-09-30T11:46:46.633 回答
0

因此,您无权访问包含 - 的 html 文件<a class="mMenuButton" href="site2.html#menu"></a>,对吗?只是想理解一下对不起。

于 2014-09-30T13:01:39.277 回答