更新@ Ajax.Actionlink上的URL单击 [英] Update URL on @Ajax.Actionlink Click
本文介绍了更新@ Ajax.Actionlink上的URL单击的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
HI,
如何在Asp.net MVC4中点击@ Ajax.Actionlink更新网站网址(改进搜索引擎优化),我不想用@ Html.ActionLink
解决方案
您好,
您可以使用History.js,您可以使用它来更新历史URL状态。
请参阅此链接。
https://github.com/balupton/History.js/ [ ^ ]
它有PushState,ReplaceState和Go以及更多事件,您可以使用它们执行更新URL操作。您可以通过在Ajax.ActionLink中使用AjaxOptions来调用jquery函数。
希望这会有所帮助。 :)
HI,
How to update Website url when clicking on @Ajax.Actionlink in Asp.net MVC4( TO IMPROVE SEO ), I dont want to use @Html.ActionLink
解决方案
Hi,
You can use History.js, using which you can update the history URL state.
Refer this link.
https://github.com/balupton/History.js/[^]
It having PushState, ReplaceState and Go and more events,using which you can perform update url operation. You can call jquery function, from using AjaxOptions in Ajax.ActionLink.
Hope this will help. :)
这篇关于更新@ Ajax.Actionlink上的URL单击的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文