0
好日子了jQuery的Ajax功能發送localStorage的變量,通過沒有它的URL爲
我只是想知道,如果沒有通過Ajax的功能,沒有它的網址是發送localStorage的變量的方法。例如:
$.ajax({
type: "POST",
url: "../pages/profile.php",
data: localStorage.email,
dataType: 'json'
success: function(result)
{
//document.location.replace('../pages/main.php');
},
error: function()
{
alert('An Error has occured, please try again.');
}
});
根據需要,PHP的返回類型將是JSON。
在此先感謝
謝謝,它似乎在工作 – Crossman