![](/img/trans.png)
[英]How to show index.html page in heroku using Python/Flask
[英]show the page names dynamically for all pages to index.html
在我們的項目中,我們有多個頁面。 我想在我的布局視圖上顯示特定的視圖名稱。 例如,我的路徑是http:// localhost:64632 / admin / index.html#/ Subscribe 。 然后應在主視圖上顯示“訂閱”名稱。 我想要這段代碼使用javascript。 asp.net C#JavaScript,WebAPI
您可以使用javascript獲取當前網址:
var x = window.location.href;
如果要在'#/'之后輸入字符串,可以使用以下命令
var x = window.location.href.split('#/')[1];
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.