aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/module/Panel.jsx
diff options
context:
space:
mode:
authoriceman1212 <iceman_1212@163.com>2015-12-03 13:50:07 +0800
committericeman1212 <iceman_1212@163.com>2015-12-03 13:50:07 +0800
commit98275fd898df0711b4e31c6705c8cd66f790816e (patch)
treed0fdbbe15448861e5b9b3ee23d38854241ccdd9b /src/module/Panel.jsx
parentc572b1cd5336b63b0bd47215384727c8c93f52a9 (diff)
downloadtime-picker-98275fd898df0711b4e31c6705c8cd66f790816e.tar.gz
time-picker-98275fd898df0711b4e31c6705c8cd66f790816e.tar.zst
time-picker-98275fd898df0711b4e31c6705c8cd66f790816e.zip
SCRIPT5028: Function.prototype.apply: 缺少 Array 或 arguments 对象
SCRIPT5028: Function.prototype.apply: 缺少 Array 或 arguments 对象
Diffstat (limited to 'src/module/Panel.jsx')
-rw-r--r--src/module/Panel.jsx8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/module/Panel.jsx b/src/module/Panel.jsx
index b91c6fe..4c7eaae 100644
--- a/src/module/Panel.jsx
+++ b/src/module/Panel.jsx
@@ -7,9 +7,11 @@ function noop() {
7} 7}
8 8
9function generateOptions(length) { 9function generateOptions(length) {
10 return Array.apply(null, {length: length}).map((item, index) => { 10 const arr = [];
11 return index; 11 for(let i = 0; i < length; i++){
12 }); 12 arr.push(i);
13 }
14 return arr;
13} 15}
14 16
15const Panel = React.createClass({ 17const Panel = React.createClass({