File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -178,8 +178,7 @@ <h1>ULID 生成器</h1>
178178 const randomPart = randomString ( 16 ) ;
179179 output . push ( timePart + randomPart ) ;
180180 }
181- document . getElementById ( 'ulid-output' ) . value = output . join ( '
182- ' ) ;
181+ document . getElementById ( 'ulid-output' ) . value = output . join ( '\n' ) ;
183182 }
184183
185184 function clearOutput ( ) {
@@ -189,4 +188,4 @@ <h1>ULID 生成器</h1>
189188
190189 < script src ="/assets/clicks.js " defer > </ script >
191190</ body >
192- </ html >
191+ </ html >
Original file line number Diff line number Diff line change @@ -229,9 +229,9 @@ <h1>Unicode 转义</h1>
229229 return Array . from ( input ) . map ( char => {
230230 const code = char . codePointAt ( 0 ) ;
231231 if ( code <= 0xffff ) {
232- return "\u" + code . toString ( 16 ) . padStart ( 4 , "0" ) ;
232+ return "\\ u" + code . toString ( 16 ) . padStart ( 4 , "0" ) ;
233233 }
234- return "\u{" + code . toString ( 16 ) + "}" ;
234+ return "\\ u{" + code . toString ( 16 ) + "}" ;
235235 } ) . join ( "" ) ;
236236}
237237
You can’t perform that action at this time.
0 commit comments