[英]how to get the returned URL from ajax request
i'm trying to get only the returned URL from ajax request 我正在尝试仅从ajax请求中获取返回的URL
like this 像这样
$.ajax({
type: "GET",
dataType : "jsonp",
async: false,
url: $('#FaceBookProfileLink').attr('href'),
success: function(response) {
console.log(response);
},
error: function (jqXHR, textStatus, errorThrown) {
console.log(jqXHR);
console.log(textStatus);
console.log(errorThrown);
}
});
but i can't. 但是我不能。
the returned URL showing in the console as js file but i can't get it 返回的URL在控制台中显示为js文件,但我无法获取
please any help and many thanks in advance. 请任何帮助,并在此先感谢。
当您使用'GET'方法时,请使用$ _GET []检索它们,即:
echo $_GET['code']
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.