본문 바로가기
반응형

react-native3

Execution failed for task ':app:processDebugMainManifest' 실제 에러메시지 위의 메세지를 텍스트로 복사 smilerush@SmileRushui-MacBookPro Example1ReactNative % npm run android > example1reactnative@0.0.1 android > react-native run-android info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 863 file(s) to forward-jetify. Using 10 workers... info JS server already running. info Launching emulator... info Succes.. 2022. 2. 19.
String.replace() 문자열을 의미하는, String에 사용가능한 함수 중에 replace() 함수가 있다. replace 함수는 문자열 중에서, 특정한 문자를 다른 문자로 변하게 할 수 있다. * const 텍스트 = "text,text" 위와 같은 문자열이 있다고 할 때, replace함수를 사용하면 저기 보이는 ',' 쉼표를 다른 문자열로 변경시킬 수 있다. * 예시 : 텍스트.replace("," , " ") 이는 쉼표를 공백으로 바꾸어주는 코드이다. console.log()를 통해서, 확인해보면 다음과 같다. const 텍스트 = "text,text" console.log(텍스트.replace("," , " ") // 출력, "text text" 2021. 8. 20.
String.concat() JavaScript의 String 자료형에 사용할 수 있는, 내장 메소드 .concat .concat은 문자열을 이어 붙이는 기능을 수행한다. const 텍스트 = 'text' 텍스트.concat('area') console.log(텍스트) // print out : 'textarea' concat()의 매개변수로는 'area' 하나 뿐 아니라, String 형태라면 계속 넣어서 사용할 수 있다. 2021. 8. 16.
반응형