"123".Substring(0, 60) // 총 문자열 길이가 3인데 0~60까지 문자열을 자르려고 하면 "Length" 오류가 발생한다. // 그래서 "PadRight" 함수를 이용해서 최소 길이를 60으로 설정해 주면 "Length" 오류를 회피할 수 있다. "123".PadRight(60).Substring(0, 60) PadRight https://learn.microsoft.com/ko-kr/dotnet/api/system.string.padright?view=net-6.0 Substring https://learn.microsoft.com/ko-kr/dotnet/api/system.string.substring?view=net-6.0
function SetOderType(orderType) { if ($.inArray(orderType, orderTypes) == -1) { orderTypes.push(orderType); } else { orderTypes = $.grep(orderTypes, function (value) { return value != orderType; }); } console.log(orderTypes); } 실행 결과 (2) ['ALL', 'DPC'] fulfillmentorderoperation.js?20221004121311:108 (3) ['ALL', 'DPC', 'PAT'] fulfillmentorderoperation.js?20221004121311:108 (4) ['ALL', 'DPC', 'PAT..
let text_break = ''; let text_continue = ''; for (let i = 0; i < 10; i++) { if (i === 3) { break; } text_break = text_break + i; } for (let i = 0; i < 10; i++) { if (i === 3) { continue; } text_continue = text_continue + i; } console.log("text_break ::: " + text_break); // expected output: "012" console.log("text_continue :::" + text_continue); // expected output: "012456789"
This function searches for one character expression inside a second character expression, returning the starting position of the first expression if found. 특정 문자열의 시작 위치 값을 반환합니다. DECLARE @document VARCHAR(64); SELECT @document = 'Reflectors are vital safety' + ' components of your bicycle.'; SELECT CHARINDEX('bicycle', @document); GO
// // YoutubeView.swift // DoctorSL // // Created by 장정훈 on 2022/05/21. // import SwiftUI import WebKit struct YouTubeView: UIViewRepresentable { let youtubeEmbed: String func makeUIView(context: Context) -> WKWebView { return WKWebView() } func updateUIView(_ uiView: WKWebView, context: Context) { guard let youtubeUrl = URL(string: "https://www.youtube.com/embed/\(youtubeEmbed)") else {return} ..
There is no programmatic way to control the system volume in iOS, iOS에서는 프로그래밍 방식으로 시스템 음량을 조절 할 수 있는 방법을 제공하지 않지 않는다. but you can use the MediaPlayer framework’s MPVolumeView class to present a standard user interface for controlling system volume. 하지만 "MPVolumeView class"를 사용해서 시스템 볼륨을 제어 할 수 있다. extension MPVolumeView { static func setVolume(_ volume: Float) -> Void { let volumeView = MPVolum..
- Total
- Today
- Yesterday
- 문자 자르기
- 공백제거
- trim
- App Store
- 앱 스토어
- html tag
- System.Diagnostics
- MainActor
- mssql
- Task
- 특정 문자를 기준으로 자르기
- hyper-v
- 진수 변환
- 제품 등록
- 명령어
- 상품 등록
- 아이폰
- FileUpload
- async
- system.io
- In App Purchase
- .submit()
- await
- nl2br
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |