2014-02-06 95 views

回答

1

在这条线(在你的代码行14号)

self.goNextPage = function() { 
       self.load(self.currentPage() + 1, self.limit); 
      } 

你要使用self.currentPage()(),也就是说,你在试图调用propertyfunction,这是不允许的,因此错误。

只需使用:

self.goNextPage = function() { 
        self.load(self.currentPage + 1, self.limit); 
       } 

编辑:

self.currentPage(data.currentPage)

,你正在使用它用大括号

+0

我解决它,但在此报告错误所有的时间self.currentPage(数据。当前页面); –

+0

BTw。那个固定的行也会报错。括号不重要。 –

+0

你已经在程序中的许多地方使用了大括号。你确定这个错误不是因为这个吗? – gaurav5430

相关问题