Video: Qhov rai localStorage yog dab tsi?
2024 Tus sau: Lynn Donovan | [email protected]. Kawg hloov kho: 2023-12-15 23:47
LocalStorage yog hom web cia uas tso cai rau Javascript cov vev xaib thiab cov apps khaws thiab nkag mus rau cov ntaub ntawv hauv browser yam tsis muaj hnub tas sij hawm. Qhov no txhais tau hais tias cov ntaub ntawv khaws cia hauv qhov browser yuav pheej muaj txawm tias tom qab browser qhov rai tau kaw lawm.
Hais txog qhov no, qhov chaw khaws cia hauv browser yog dab tsi?
Hauv zos cia - Cov hauv zos cia siv cov localStorage kwv yees khaws cov ntaub ntawv rau koj lub vev xaib tag nrho ntawm lub hauv paus ruaj khov. Qhov ntawd txhais tau tias khaws cia hauv zos cov ntaub ntawv yuav muaj nyob rau hnub tom ntej, lub lim tiam tom ntej, lossis xyoo tom ntej tshwj tsis yog koj tshem nws.
Ib yam li ntawd, kuv yuav teeb tsa tus nqi cia hauv zos li cas? Cia setItem() Method
- Teem tus nqi ntawm cov khoom khaws cia hauv zos: localStorage.
- Tib yam piv txwv, tab sis siv kev sib kho cia es tsis txhob cia hauv zos. Teem tus nqi ntawm qhov kev teev tseg cia khoom:
- Koj tuaj yeem teeb tsa tus nqi los ntawm kev siv dot notation (obj.key):
- Koj tuaj yeem teeb tsa tus nqi zoo li no:
Hais txog qhov no, qhov chaw khaws cia hauv lub computer yog dab tsi?
chaw cia khoom - Khoos phis tawj Lus Txhais Ib lub hard drive lossis lub xeev cov tsav ncaj qha txuas rau lub cuab yeej raug xa mus. Lub sij hawm yuav siv los sib piv cov khaws cia nyob rau hauv lub unit los ntawm lub khaws cia nyob rau hauv cov servers hauv zos network lossis hauv Internet (saib SAN, NAS thiab huab khaws cia ).
Thaum twg kuv yuav tsum siv localStorage thiab sessionStorage?
localStorage - khaws cov ntaub ntawv tsis muaj hnub tas sij hawm. qhov rai. sessionStorage - khaws cov ntaub ntawv rau ib zaug (cov ntaub ntawv ploj thaum browser tab raug kaw)
Pom zoo:
Qhov rai yog dab tsi in English?
Txhais qhov rais. 1a: qhib tshwj xeeb tshaj yog nyob rau hauv phab ntsa ntawm lub tsev rau kev nkag mus rau lub teeb thiab huab cua uas feem ntau yog kaw los ntawm casements los yog sashes uas muaj pob tshab khoom (xws li iav) thiab muaj peev xwm qhib thiab kaw. b:wind ua
Dab tsi yog sparse kem Dab tsi yog qhov zoo thiab qhov tsis zoo?
Koj poob 4 bytes tsis yog ib zaug ib kab; tab sis rau txhua lub cell hauv kab uas tsis yog null. Qhov zoo ntawm SPARSE kem yog: Qhov tsis zoo ntawm SPARSE kem yog: SPARSE kem tsis tuaj yeem siv rau ntawm cov ntawv, ntext, duab, timestamp, geometry, geography lossis cov neeg siv cov ntaub ntawv teev tseg
Koj khaws qhov rai qhov rai qhov twg?
Cov ntxaij vab tshaus yuav tsum tau muab khaws cia los ntawm qhov chaw tiaj tus los yog sawv ntsug, nyob rau hauv qhov chaw qhuav qhov chaw uas qhov kub thiab txias yuav tsum tsis tu ncua. Txhawm rau kom cov plua plav thiab av tawm ntawm lawv, npog cov pawg nrog yas
Dab tsi yog qhov qub txeeg qub teg Dab tsi yog qhov sib txawv ntawm qhov qub txeeg qub teg piav nrog piv txwv?
Inheritance yog ib txoj hauv kev kom tau txais cov yam ntxwv thiab kev coj cwj pwm ntawm ib chav kawm los ntawm lwm chav kawm. Cov chav kawm uas cov tswv cuab tau txais qub txeeg qub teg yog hu ua chav kawm hauv paus, thiab chav kawm uas tau txais cov tswv cuab tam sim no hu ua chav derived. Inheritance siv IS-A kev sib raug zoo
Qhov tseeb version ntawm Qhov rai 8 yog dab tsi?
Windows 8.1 Source model Closed-source Source-available (los ntawm Shared SourceInitiative) Tso tawm rau kev tsim khoom Lub Yim Hli 27, 2013 General muaj Lub Kaum Hli 17, 2013 Tseeb tso tawm 6.3.9600 / Plaub Hlis 8, 2014 Kev them nyiaj yug raws li txoj cai