목록filter (2)
DevTzu

자주 사용하는 javascript 함수 10가지를 소개합니다. 1. split() split() 메서드는 String 객체를 지정한 구분자를 이용하여 여러 개의 문자열로 나눕니다. var text = "Hello! world Javascript!"; var splits = text.split(" "); console.log(splits); // ["Hello!", "world", "Javascript!"] 2. indexOf() indexOf() 메서드는 호출한 String 객체에서 주어진 값과 일치하는 첫 번째 인덱스를 반환합니다. 일치하는 값이 없으면 -1을 반환합니다. 'Blue Cloud'.indexOf('Blue'); // returns 0 'Blue Cloud'.indexOf('Blute');..
[blendTrans Filter] 객체를 흐릿하게 또는 뚜렷하게 하는 효과 이미지 또는 텍스트 등에 시간 간격을 두고 다양한 효과를 줄때 사용 blendTrans는 단독으로는 사용 할수가 없고 스크립크와 함께 사용 ※Methods object.filters.blendTrans.apply() : 객체에 blendTrans필터 적용 object.filters.blendTrans.play(duration) : 필터효과 시작 object.filters.blendTrans.stop() : 필터효과를 정지 ※Properties duration : 적용되어지는 시간을 설정(초단위) enabled : filter를 적용할것인지를 설정. true(default), false ....