我正在尝试从外部网址http://www.site-external.com/index.php?option=com_name&task=get_function&format=json
中获取控制器的响应jQuery.ajax({
type: "GET",
dataType : 'html',
url: "http://www.site-external.com/index.php?option=com_name&task=get_function&format=json",
success: function(response){
}
});
感谢
答案 0 :(得分:1)
答案 1 :(得分:1)
jQuery.ajax({
type: "GET",
dataType : 'html',
url: "http://www.site-external.com/component/com_name/controller/your_filename.php",
data: "data=" + datavalue,
success: function(response){
}
});