diff options
author | iceman1212 <iceman_1212@163.com> | 2015-12-03 13:50:07 +0800 |
---|---|---|
committer | iceman1212 <iceman_1212@163.com> | 2015-12-03 13:50:07 +0800 |
commit | 98275fd898df0711b4e31c6705c8cd66f790816e (patch) | |
tree | d0fdbbe15448861e5b9b3ee23d38854241ccdd9b /src/module | |
parent | c572b1cd5336b63b0bd47215384727c8c93f52a9 (diff) | |
download | time-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')
-rw-r--r-- | src/module/Panel.jsx | 8 |
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 | ||
9 | function generateOptions(length) { | 9 | function 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 | ||
15 | const Panel = React.createClass({ | 17 | const Panel = React.createClass({ |