Yii分页无法从js获取错误

时间:2015-03-31 08:49:19

标签: ajax yii pagination

我的项目在子域上,并且它在我的localhost上完全使用相同的代码(完全相同),但它没有。 我从localhost检查了ajax网址:

http://myproject.domain.ro/mymodule/payments/index/yt0/Filter/FitnessSubscriber%5Buser_name%5D//FitnessSubscriber%5Buser_id%5D//FitnessSubscriber%5Bcity%5D/1/FitnessSubscriber%5Bgym_id%5D//FitnessSubscriber%5Bab_name%5D//FitnessSubscriber%5Babtype_id%5D//FitnessSubscriber%5Bhas_companion%5D//FitnessSubscriber%5Bcontribution%5D//FitnessSubscriber%5Bmonth%5D/4/FitnessSubscriber%5Byear%5D/2015/FitnessSubscriber%5Bpaid%5D//FitnessSubscriber_page/2?ajax=subscribers

来自子域名:

http://myproject.domain.ro/mymodule/payments/index/yt0/Filter/FitnessSubscriber%5Buser_name%5D//FitnessSubscriber%5Buser_id%5D//FitnessSubscriber%5Bcity%5D/1/FitnessSubscriber%5Bgym_id%5D//FitnessSubscriber%5Bab_name%5D//FitnessSubscriber%5Babtype_id%5D//FitnessSubscriber%5Bhas_companion%5D//FitnessSubscriber%5Bcontribution%5D//FitnessSubscriber%5Bmonth%5D/4/FitnessSubscriber%5Byear%5D/2015/FitnessSubscriber%5Bpaid%5D//FitnessSubscriber_page/2?ajax=subscribers

正如您所看到的那样,但在localhost中我从js收到此错误消息:

xhr.send( ( s.hasContent && s.data ) || null );

我不明白相同的代码,localhost上的相同项目不起作用。你能给我一些想法吗?

0 个答案:

没有答案