在Javascript中从路径中删除查询字符串的简单方法是什么?我见过一个使用window.location.search的Jquery插件。我不能这样做:在我的例子中,URL是一个从AJAX设置的变量。
var testURL = '/Products/List?SortDirection=dsc&Sort=price&Page=3&Page2=3&SortOrder=dsc'
https://stackoverflow.com/questions/2540969
相似问题