$.ajax ({
URL: "native.ajax.php?id=" + Escape (OrderID),
Type: "GET",
DataType: "JSON",
Data: "",
Success:function (data) {
if (data==1) {
Window.location.href = ". /";
}
}
http://www.a.com/user/pay/index.php
Include loads the native.php file in the WX directory, which contains the Ajax
URL If you use http://www.xx.com/user/pay/wx/native.ajax.php?id= "+ Escape (OrderID) to fetch the value
But the relative path wx/native.ajax.php,./wx/native.ajax.php, or native.ajax.php
Change to absolute path/user/pay/wx/native.ajax.php is not possible. What's going on here?
Reply to discussion (solution)
Operation must be configured with domain name
And the link under the domain name
Operation must be configured with domain name
And the link under the domain name
has been configured, my problem is to use the full URL to automatically jump, using relative address and absolute address book jump.
But it's done, because my family made a judgment. Points for you!