템플릿 리터럴에서 멀티 라인 단락을 작성하려고 시도한 적이 있지만, \ n?
function explain() { const description = ` - 200 OK The request succeeded. The result meaning of "success" depends on the HTTP method: * GET: The resource has been fetched... * HEAD: The representation headers are... * PUT or POST: The resource describing... * TRACE: The message body contains the... ` console.log(description) } explain()$ bun Index.ts - 200 OK 요청이 성공했습니다. "성공"의 결과 의미는 HTTP 방법에 따라 다릅니다. * GET : 자원이 가져 왔습니다 ... * 헤드 : 표현 헤더는 ... * PIT 또는 POST : 설명하는 자원 ... * 추적 : 메시지 본문에 ...
$ bun index.ts - 200 OK The request succeeded. The result meaning of "success" depends on the HTTP method: * GET: The resource has been fetched... * HEAD: The representation headers are... * PUT or POST: The resource describing... * TRACE: The message body contains the...
잠깐만 요, 들여 쓰기를 제거해야합니까?함수 설명 () { const description = '- 200 OK \ n' '요청이 성공했습니다. "성공"의 결과 의미는 http 방법에 따라 다릅니다. \ n \ n ' ' * GET : 자원이 가져 왔습니다 ... \ n' ' * 헤드 : 표현 헤더는 ... \ n' ' * put 또는 post : 설명하는 자원 ... \ n' ' * 추적 : 메시지 본체에는 ... \ n' Console.log (설명) } 설명하다()아아. 나는 아름답게 형식의 코드를 포기할 수 없습니다.
$ bun index.ts - 200 OK The request succeeded. The result meaning of "success" depends on the HTTP method: * GET: The resource has been fetched... * HEAD: The representation headers are... * PUT or POST: The resource describing... * TRACE: The message body contains the...
나는 그것을 가져갈 것이다. ?이런 이유로, 멀티 린 텍스트는 항상 나에게 두통입니다.
이제 당신은 헌신적입니다
$ bun index.ts - 200 OK The request succeeded. The result meaning of "success" depends on the HTTP method: * GET: The resource has been fetched... * HEAD: The representation headers are... * PUT or POST: The resource describing... * TRACE: The message body contains the...내가 한 일은 템플릿 문자 앞에 헌신적이었습니다. 당신은 그것을 믿지 않습니까?
$ bun index.ts - 200 OK The request succeeded. The result meaning of "success" depends on the HTTP method: * GET: The resource has been fetched... * HEAD: The representation headers are... * PUT or POST: The resource describing... * TRACE: The message body contains the...그것은 모든 불필요한 들여 쓰기를 제거하고 우리가 예상 한대로 그것을 만듭니다.
왜 우리가 더 복잡한 것을 시도하지 않습니까?
function explain() { const description = ` - 200 OK The request succeeded. The result meaning of "success" depends on the HTTP method: * GET: The resource has been fetched... * HEAD: The representation headers are... * PUT or POST: The resource describing... * TRACE: The message body contains the... ` console.log(description) } explain()$ bun Index.ts - 200 OK 요청이 성공했습니다. "성공"의 결과 의미는 HTTP 방법에 따라 다릅니다. * GET : 자원이 메시지 본문에서 가져 와서 전송되었습니다. * 헤드 : 표현 헤더는 메시지 본문없이 응답에 포함됩니다. * PIT 또는 POST : 동작의 결과를 설명하는 리소스는 메시지 본문에서 전송됩니다. * 추적 : 메시지 본문에는 서버가 수신 한 요청 메시지가 포함되어 있습니다. -2 생성 요청이 성공했으며 결과적으로 새로운 리소스가 생성되었습니다. 이것은 일반적으로 사후 요청 후 전송 된 응답 또는 일부 요청입니다.
$ bun index.ts - 200 OK The request succeeded. The result meaning of "success" depends on the HTTP method: * GET: The resource has been fetched... * HEAD: The representation headers are... * PUT or POST: The resource describing... * TRACE: The message body contains the...soo smoooth!?
부인 성명: 제공된 모든 리소스는 부분적으로 인터넷에서 가져온 것입니다. 귀하의 저작권이나 기타 권리 및 이익이 침해된 경우 자세한 이유를 설명하고 저작권 또는 권리 및 이익에 대한 증거를 제공한 후 이메일([email protected])로 보내주십시오. 최대한 빨리 처리해 드리겠습니다.
Copyright© 2022 湘ICP备2022001581号-3