mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
refactor(config) value - 0 -> Number(value)
This commit is contained in:
parent
b9a0e4e409
commit
df122dbcbe
1 changed files with 1 additions and 2 deletions
|
|
@ -240,10 +240,9 @@ var CloudCmd, Util, DOM, io;
|
|||
switch(type) {
|
||||
case 'checkbox':
|
||||
data = el.checked;
|
||||
|
||||
break;
|
||||
case 'number':
|
||||
data = el.value - 0;
|
||||
data = Number(el.value);
|
||||
break;
|
||||
default:
|
||||
data = el.value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue