1. .replace(/(^0+)/, ""); 정규식 사용. var num = '000010111200'; num.replace(/(^0+)/, ""); result : 10111200 2. Number() 함수 사용. ( = 문자열을 숫자로 반환하는 함수) var num = '000010111200'; Number(num); result : 10111200 * JavaScript 에서 숫자가 아닌 값에 Number()함수를 수행할 경우 NaN이 출력 = NaN(Not-A-Number)
문자 코드를 기준으로 문자를 코드로 변환하는 것을 문자 인코딩(encoding) 코드를 문자로 변환하는 것을 문자 디코딩(decoding) encodeURI() : 주소에서 사용하는 :, ;, /, =, ?, & 등을 제외하고 인코딩하는 함수 encodeURIComponent() : 모든 문자를 인코딩하는 함수 decodeURI() : encodeURI로 인코딩한 문자열을 디코딩하는 함수 decodeURIComponent() : encodeURIComponent()로 인코딩한 문자열을 디코딩하는 함수 URI https://truecode-95.tistory.com?true=코딩 encodeURI https://truecode-95.tistory.com?true=%EC%BD%94%EB%94%A9 decod..
script css ul.tabs { margin: 0; padding: 0; float: left; list-style: none; height: 32px; /*--Set height of tabs--*/ border-bottom: 1px solid #999; border-left: 1px solid #999; width: 100%; } ul.tabs li { float: left; margin: 0; padding: 0; height: 31px; /*--Subtract 1px from the height of the unordered list--*/ line-height: 31px; /*--Vertically aligns the text within the tab--*/ border: 1px soli..
FormData는 단순한 객체가 아닌 XMLHttpRequest 전송을 위해 설계된 특수한 객체 형태라 문자화 할 수 없다. console.log로 확인 불가능. 아래의 방법으로 key value확인 가능. // FormData의 key 확인 for (var key of formData.keys()) { console.log(key); } // FormData의 value 확인 for (var value of formData.values()) { console.log(value); }
- Total
- Today
- Yesterday
- file drag drop
- MSsql
- js라이브러리사용
- 전자서명기능구현
- jxls
- draganddrop file
- Swift
- 달력기능개발
- for in문제
- PostgreSQL
- jsignature.min.js
- js달력
- 전자서명개발
- Xcode
- swift 메모장 만들기
- js 전자서명
- fullcalendar js
- spring annotation
- for in 주의
- https://www.jstree.com/
- jxls 엑셀
- js file drag
- xcode swift memo
- Oracle
- 트리구조jstree
- mysql
- xcode12.5.1
- ios app 개발
- js라이브러리
- swift 계산기
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |