假设A页面有:
var str = '[{"uname":"王强","day":"2010/06/17"},{"uname":"王海云","day":"2010/06/11"}]';
B页面用ajax传过去两个变量如nowpage和perpage:
-$.ajax{
url:A页面地址,
data:nowpage和perpage的值
......
}
nowpage表示当前页,perpage表示每页所展示的数据数量,根据perpage设置不同
如perpage=1,nowpage=1,在A页面读取{"uname":"王强","day":"2010/06/17"},
如perpage=2,nowpage=1,在A页面读取{"uname":"王强","day":"2010/06/17"},{"uname":"王海云","day":"2010/06/11"}。
A页面取到的是json,可是怎么将读取的json内容传回A页面?
请教各位大虾该如何实现啊?