JS maintain the current parameters after the jump

跳转
                var data = str+"&jc=0"+ "&data=" + $("form").serialize().replace(/&/g, "(").replace(/=/g, ")");
                window.location.href = data;
接收
          var data1 = data.Replace("(", "&").Replace(")", "=");
            ViewBag.URL = " / Backxx / xxx / List / the above mentioned id = 5001? " + " & " + Data1; // transfer back to the menu

 

Guess you like

Origin www.cnblogs.com/enych/p/11691168.html