|
发表于 2023-10-23 16:32:49
|
显示全部楼层
找到方法了,
//载入Jquery
o2.load("jquery", function(){
//防止jquery冲突
jQuery.noConflict();
//var done = function (data) {
//};
//发起get请求
//jQuery.get("index.html", done);
jQuery.ajax({
type : 'GET',
dataType : 'json',
url : 'http://xxxx:xxx/x_organization_assemble_control/jaxrs/personcard/listgrouptypes',
headers : {'x-debugger' : true},
contentType : 'application/json',
xhrFields : {'withCredentials' : true},
crossDomain : true
}).always(function(resultJson) {
alert(JSON.stringify(resultJson, null, 4))
});
}); |
|