weixin_33739541 2012-04-02 15:44 采纳率: 0%
浏览 23

php ajax页面输出

in my case , i need to return value from a ajax page. as i know , there is two way to do it: echo , return.

echo 0;
exit;

or

return 0;
exit;

is there any different between them?

  • 写回答

2条回答 默认 最新

  • weixin_33716557 2012-04-02 15:47
    关注

    AJAX retrieves the output from another page. echo will output something, but return is for returning a value from a function.

    Use echo.

    评论

报告相同问题?