strange thing, ajax response includes whitespace

后端 未结 3 2071
孤街浪徒
孤街浪徒 2020-12-11 16:51

I ave several JS functions that call different php files with $.ajax jquery method... yesterday everything was fine, but after cleaning up my code, i don\'t know what i did,

3条回答
  •  自闭症患者
    2020-12-11 17:34

    If your response from the server includes the extra space, then the php code is the cause. If your response does not include the extra space, then the problem must be in javascript.

    Use Fiddler to examine the actual response from the server to see if it really has the space in it. You'll then know for sure if the problem is with PHP or JS. Then you can post the relevant code.

提交回复
热议问题