-
- ANDROID
- ANDROID_TABLET
- CHROME
- CHROME_VERSION
- DOC_MODE
- DOC_MODE_IE10_LT
- DOC_MODE_IE11_LT
- DOC_MODE_IE12_LT
- DOC_MODE_IE8_LT
- DOC_MODE_IE9_LT
- EDGE
- FIREFOX
- IE10_LT
- IE11_LT
- IE7_LT
- IE8_LT
- IE9_LT
- IE_COMPATIBLE
- IE_VERSION
- IPAD
- IPHONE
- LINUX
- MAC
- MOBILE
- MOBILE_IOS
- MOZILLA
- MSIE
- OPERA
- OPERA_MINI
- OS_VERSION
- SAFARI
- SAMSUNG
- SAMSUNG_VERSION
- SMART_PHONE
- TABLET
- TOUCH_DEVICE
- VERSION
- WEBKIT
- WEBKIT_VERSION
- WINDOWS
- WINDOWS_PHONE
- WINDOWS_TABLET
-
- addChild
- addClass
- addEvent
- attr
- children
- clone
- closest
- contentHeight
- contentWidth
- css
- each
- element
- hasClass
- hasEvent
- height
- html
- innerHeight
- innerWidth
- insertSWF
- match
- next
- outerHeight
- outerWidth
- parent
- prev
- prop
- rect
- remove
- removeAllEvent
- removeAttr
- removeChild
- removeClass
- removeEvent
- removeProp
- replaceWith
- scrollLeft
- scrollTop
- selector
- selectorAll
- text
- transition
- trigger
- width
insert()
Type : public method
Support : 0.6
Return : String
- 대상 문자열의 원하는 Index에 문자열을 추가하여 반환.
- 반복적용 가능.
반복적용시 마지막 index에는 문자가 추가 되지 않는다.
Methods
-
insert( str, addIndex, direction, repeat ) : Stringver 0.6~
-
str : String대상 문자열
-
addIndex : Int삽입할 Index
-
direction : String진행될 방향(left, right). 기본값 right
-
repeat : Boolean반복적용 설정. 기본값 false
-
Example
var str = 'ABCDEFGHIJK';
var result1 = $B.string.insert( str, 3, '-' ); // ABC-DEFGHIJK
var result2 = $B.string.insert( str, 3, '+', 'left', true ); // AB+CDE+FGH+IJK