URLSearchParams API? ???? URL ?? ?? ??? ?? ?????. const name = urlparams.get ( 'name'); 2. ?? ?? ??? ?? ? ? getAll () ???? ???? ?? ??? ?? ?? ? ????. 3. URL ??? ?? ??? ?? URL? ?? ????? ?? ????? ?? ??? ? ????. 4. ?? ??? ???? ??? ?? ?? ??? CASE? ???? ?? ????? ??? ???? ?????? URL ???? ???? ??????. ????, ??? urlsearchparams (window.location.search) ?? ?? ?? ??? ???? ????? ?? ??? ????? ??? ??? ?????. ? ??? ???? ?? ?????? ?? URL? ?? ?? ??? ???? ?? ????.
JavaScript? URL?? ?? ?? ??? ???? ?? ?? ??? ??? ??? ?? URLSearchParams
API? ???? ????. ?? ?? ?????? ???? ?? ?? ?? ???? ???? ????.

1. URLSearchParams
??
URL (?? Query String)??? ?? ??? ?? ?? ??? ?? ? ? ????.
// ?? URL : https://example.com?name=john&age=30 const urlparams = new urlsearchparams (window.location.search); // ?? ?? ?? ?? ???? const name = urlparams.get ( 'name'); // "?" const age = urlparams.get ( 'Age'); // "30" Console.log (??, ??);
window.location.search
Query ???? URL? ?? ???? ????? (? :?name=John&age=30
).
URLSearchParams
? ???? ?? :
-
.get('param')
- ?? ??? ? ?? ?? ?????. -
.getAll('param')
- ?? ?? ????? (?tag=js&tag=web
? ?? ?? ?? ??? ?????). -
.has('param')
- ?? ??? ??? ?????. -
.append('param', 'value')
- ??? ?? ??? ?????. -
.toString()
- ?? ???? ?????.
2. ?? ?? ?? ?? ?? ??
?? ??? ? ? ?? ???? ??
// url? ?? :? tag = javaScript & tag = html & tag = css const tags = urlparams.getall ( 'tag'); // [ 'javaScript', 'html', 'css']
3. ??? ?? URL ??? ?? (?? ???? ??)
URL ?? ?? ???? ?? ?? ? ? ????.

const url = 'https://example.com?product=shirt&color=blue'; const urlobj = new URL (URL); const params = new urlsearchparams (urlobj.search); const product = params.get ( 'product'); // '??' const color = params.get ( '??'); // '???'
?? ?? ???? ?? ??????.
const params = new urlsearchparams ( '? name = john & age = 25'); const name = params.get ( 'name'); // '?'
4. ?? ??? ? ??
- ?? ??? ???? ???
.get()
undefined
??null
?????. - ?? ?? ??? ?? ??? ????? :
?Name=John
≠name
. - ?? ?? ???? ?????. ?? ??? ?? ???????.
const age = parseint (urlparams.get ( 'Age'), 10) || 0; const isactive = urlparams.get ( 'active') === 'true';
- URL ??????????.
URLSearchParams
???? ?????.
// City = New York const city = urlparams.get ( 'city'); // "New York"(???? ???)
??? ??? : new URLSearchParams(window.location.search)
???? ?? URL?? ?? ?? ??? ?? ??????. ???? ???? Regex ?? Manual Parsing? ????.
? ??? JavaScript?? URL?? ?? ?? ??? ?? ??? ??????? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

TAGGSATTHEBOTTOMOFABLOGPOSTORWEBPAGESERVESPRACTICALPURSEO, USEREXPERIENCE, andDESIGN.1.ITHELPSWITHEOBYOWNSESPORENGENSTOESTOCESKESKERKESKERKERKERDER-RELEVANTTAGSWITHOUTHINGTEMAINCONTENT.2.ITIMPROVESEREXPERKEEPINGTOPONTEFOCUSOFOFOFOCUSOFOFOFOCUCUSONTHEATECLL

??? ?? ? ??? DOM?? ??? ??? ? ?????. ??? ?? ????? ?? ??????, ??? ?? ???? ?? ????????. 1. ??? ??? addeventListener? usecapture ?? ??? true? ???? ?????. 2. ??? ??? ?? ???? usecapture? ???? ????? ?????. 3. ??? ??? ??? ??? ???? ? ??? ? ????. 4. ??? ?? ?? ?? ??? ?? ??? ??????? ??? ???? ?????. 5. ??? ?? ?? ?? ??? ?? ???? ?? ???? ? ??? ? ????. ? ? ??? ???? ???? JavaScript? ??? ??? ??? ????? ???? ???? ??? ??????.

ES ??? CommonJS? ?? ???? ?? ?? ? ?? ???????. 1. Commonjs? ????????? Node.js ?? ? ??? ?????. 2.ES ??? ???????? ????? ?? ???? ??? ?????. 3. ??, ES ??? ?? ??/????? ???? ??? ??? ?????? CommonJS? Quiew/Module.exports? ???? ???? ???? ?? ? ? ????. 4. Commonjs? Express? ?? ???? Node.js ? ?????? ?? ???? ?? ???? ?? ES ??? ?? ??? ?? ??? ?? ? Node.jsv14? ?????. 5. ?? ? ? ??? ?? ??? ??? ? ????.

JavaScript? ??? ?? ????? ??? ?? ??? ??? ?? ?? ?? ????? ?? ???? ???? ?????. ??? ?? ???? ?? ??? ?? ??? ???? ???? ?? ?? ???? ???? ?????. ?? ??, ??? ? ?? ???? ??? (? : ??? null? ??) ?? ??? ????? ??????. ??? ??? ???? ??? ??? ????. closure?? ?? ??? ?? ??; ? ??? ??? ?? ?? ???? ?? ???? ????. V8 ??? ?? ???, ?? ??, ??/?? ???? ?? ??? ?? ??? ??? ????? ?? ??? ?? ??? ????. ?? ?? ???? ??? ??? ??? ??? ???? ????? ?? ?? ???? ?? ???????.

Node.js?? HTTP ??? ???? ? ?? ???? ??? ????. 1. ?? ????? ????? ??? ??? ? ?? ????? ?? ?? ? https.get () ??? ?? ??? ??? ? ?? ????? ?? ??? ?????. 2.axios? ??? ???? ? ?? ??????. ??? ??? ??? ??? ??? ??? ???/???, ?? JSON ??, ???? ?? ?????. ??? ?? ??? ????? ?? ????. 3. ?? ??? ??? ??? ??? ???? ???? ??? ??? ???? ?????.

VAR, Let ? Const? ???? ??, ?? ? ?? ?????. 1.var? ?? ??????? ?? ???? ?? ? ??? ?????. 2. let? ?? ?? ????? ?? ?? ???? ?? ? ??? ???? ????. 3. ???? ?? ?? ???? ?? ??????? ? ?? ? ? ??? ?? ??? ?? ?? ??? ? ????. ?? const? ???? ??? ??? ? LET? ???? VAR? ???? ????.

JavaScript ??? ??? ?? ?? ? ?? ???? ????. ?? ???? ???, ??, ??, ?, ???? ?? ? ??? ?????. ?? ????? ?? ?? ? ? ??? ????? ?? ??? ??? ????. ??, ?? ? ??? ?? ?? ??? ??? ??? ???? ??? ??? ???? ??? ?? ??? ????. ?? ? ????? ??? ???? ? ??? ? ??? TypeofNull? ??? ?????? ??? ? ????. ? ? ?? ??? ???? ?????? ????? ???? ??? ???? ? ??? ? ? ????.

DOM Traversal? ? ??? ?? ??? ?????. ???? ???? ??? ?????. 1. ParentNode? ???? ?? ??? ?? ???? ?? ? ????. 2. ???? ?? ?? ??? ???? ??? ?? ? ?? ?? ?? ??? ??? ??????. 3. NextElementsibling? ?? ?? ??? ?? ?? ??? ???? ??? ??? ??? ?????. ???? ?? ??, ??? ?? ?? ?? ?? ?? ????? ??? ???? ?? Brother ??? ?? ?????. ??? ??? ??? ? ??? ??? ??? ???? ?? ? ? ????.
