随便down了个easyif的项目,刚接触ajax不久,有部分源码一直不明白。[code="java"]
EasyAjaxUtil.queryPage=function(i,scope){
CustomerService.listCustomer(i,scope);
}
EasyAjaxUtil.queryPage=function(i,scope){
loadSystemUser(i,scope);
}
[/code]
在html页面有上面的代码 ,当然分别位于不同的页面。实在不明白他们是怎么回事。我的理解他们是设置分页的。但是CustomerService.listCustomer(i,scope)和loadSystemUser(i,scope)在类里面并未出现这两种方法,不晓得从哪里冒出来的。
那就可能是请求后台时,后台动态产生了一些js,其中包含这两个方法的,
dwr不就是动态产生js的