Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

开启ajax拦截,但是回调函数里面获取不到结果 #6

Closed
ZhangKejun opened this issue Dec 27, 2019 · 1 comment
Closed

Comments

@ZhangKejun
Copy link

var ajaxUrl = "https://xxxx";
$.ajax({
url: ajaxUrl,
type: "POST",
success: function(data) {
console.log(data); // 此行不进来,获取不到回调数据
}
});

控制台拦截日志:
2019-12-27 11:37:43.145636+0800 KKJSBridgeDemo[26649:467666] KKJSBridge Receive ajax.open: {
"method" : "POST",
"scheme" : "http:",
"port" : "50000",
"id" : 993,
"async" : true,
"href" : "http://127.0.0.1:50000/index",
"host" : "127.0.0.1",
"referer" : null,
"useragent" : "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/16A366 KKJSBridge/1.0.0",
"url" : "https://xxxx"
}
2019-12-27 11:37:43.146043+0800 KKJSBridgeDemo[26649:467676] KKJSBridge Receive ajax.setRequestHeader: {
"id" : 993,
"headerName" : "Accept",
"headerValue" : "/"
}
2019-12-27 11:37:43.146208+0800 KKJSBridgeDemo[26649:467893] KKJSBridge Receive ajax.send: {
"id" : 993
}

@ZhangKejun
Copy link
Author

已经引入了<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant