Passing localstorage to controller using Ajax
问题 I need to access the data held in localstorage, server side but that's another story. I have this button in my view: <div style="float:right;"> <input id="btnTest" type="button" name="test Json Button" value="test Json Button" onclick="sendLocalStorage();" class="btn btn-default" /> </div> This JS function: function sendLocalStorage() { var JsonLocalStorageObj = JSON.stringify(localStorage); //var test = ["test1", "test2", "test3"]; $.ajax({ url: "/MyControllersName/Test", type: "POST",