質問編集履歴

1

記載ミス修正

2017/10/23 11:18

投稿

gomengo
gomengo

スコア51

test CHANGED
File without changes
test CHANGED
@@ -116,7 +116,7 @@
116
116
 
117
117
  showLast: function(index) {
118
118
 
119
- this.page = Math.floor((this.csv.length - 1) / this.dispItemSize);
119
+ this.page = Math.floor((this.data.length - 1) / this.dispItemSize);
120
120
 
121
121
  //this.page = this.pageCount - 2;
122
122
 
@@ -136,7 +136,7 @@
136
136
 
137
137
  var startPage = this.page * this.dispItemSize;
138
138
 
139
- return this.csv.slice(startPage, startPage + this.dispItemSize);
139
+ return this.data.slice(startPage, startPage + this.dispItemSize);
140
140
 
141
141
  },
142
142
 
@@ -148,13 +148,13 @@
148
148
 
149
149
  isEndPage: function(){
150
150
 
151
- return ((this.page + 1) * this.dispItemSize >= this.csv.length);
151
+ return ((this.page + 1) * this.dispItemSize >= this.data.length);
152
152
 
153
153
  },
154
154
 
155
155
  pageCount: function() {
156
156
 
157
- return Math.floor(this.csv.length / this.dispItemSize);
157
+ return Math.floor(this.data.length / this.dispItemSize);
158
158
 
159
159
  },
160
160