-
Notifications
You must be signed in to change notification settings - Fork 0
Util.stringToObject
최연규 edited this page Nov 20, 2016
·
1 revision
- String, Number ("10px", "5" , 5)
- Object(PropertyObject)
- Util.stringToObject("10px")
- Util.stringToObject("1,1,1,1")
strings | return |
---|---|
10 | 10 |
"10px" | "10px" |
"1,1,1,1" | PropertyObject(array=>[1,1,1,1],separator=",") |
"1 1 1 1" | PropertyObject(array=>[1,1,1,1],separator=" ") |
"rgba(1,1,1,1)" | PropertyObject(prefix="rgba(", suffix=")", array=[1,1,1,1],separator=",") |
"1px solid rgba(1,1,1,1)" | PropertyObject(array=["1px", "solid", PropertyObject...],separator=" ") |