jquery ajax get return value

后端 未结 7 1534
不知归路
不知归路 2021-01-21 04:22

i want to get the \'printed value\' of html pages.

i tried below query, but showGetResult() just return \'null value\'

but my apache server logs printed i access

相关标签:
7条回答
  • 2021-01-21 05:01
    jQuery.ajax({
    async: false, //add async false
            url: 'http://localhost/index.php',
            type: 'get',
            dataType: 'text/html',
            success:function(data)
            {
                alert(data);
                result = data;
            } 
         });
    
    0 讨论(0)
提交回复
热议问题