jquery ajax get return value

后端 未结 7 1522
不知归路
不知归路 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 04:42

    Rather than using document.write on what you expect the function to return, the success callback can take care of that for you, like so:

    success:function(data) {
        document.write(data);
    }
    

提交回复
热议问题