diff options
author | iceman1212 <iceman_1212@163.com> | 2015-12-03 13:50:07 +0800 |
---|---|---|
committer | afc163 <afc163@gmail.com> | 2015-12-04 22:34:05 +0800 |
commit | a79ee8c35ef64e18e677c4a814f7945a3734a64c (patch) | |
tree | 26d03e9d71f10b125fc2f2d3461da4a20aa37793 | |
parent | 7702bb67968104a64fa85ba7e893bf2393eeb3c5 (diff) | |
download | time-picker-a79ee8c35ef64e18e677c4a814f7945a3734a64c.tar.gz time-picker-a79ee8c35ef64e18e677c4a814f7945a3734a64c.tar.zst time-picker-a79ee8c35ef64e18e677c4a814f7945a3734a64c.zip |
SCRIPT5028: Function.prototype.apply: 缺少 Array 或 arguments 对象
SCRIPT5028: Function.prototype.apply: 缺少 Array 或 arguments 对象
-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 e372774..8c96611 100644 --- a/src/module/Panel.jsx +++ b/src/module/Panel.jsx | |||
@@ -11,9 +11,11 @@ function noop() { | |||
11 | } | 11 | } |
12 | 12 | ||
13 | function generateOptions(length) { | 13 | function generateOptions(length) { |
14 | return Array.apply(null, {length: length}).map((item, index) => { | 14 | const arr = []; |
15 | return index; | 15 | for(let i = 0; i < length; i++){ |
16 | }); | 16 | arr.push(i); |
17 | } | ||
18 | return arr; | ||
17 | } | 19 | } |
18 | 20 | ||
19 | const Panel = React.createClass({ | 21 | const Panel = React.createClass({ |