亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

??
? indexeddb? ?????? (??? ??? ?? ??)
? IndexedDB? ?? ??
? ? ?? ?? ? ?? (?? ??)
??? ??
?? ??? ??????
??? ? ?? (? : ?? ?)
? ?? ????? ?
? ?? ? ???
? ?? ??
? ? ????? ????? Q&A IndexEdDB ? ????? ? ????? ?? ???? ???

IndexEdDB ? ????? ? ????? ?? ???? ???

Aug 01, 2025 am 01:59 AM

?? ?? ??? ? ???? ????, ???? ??? ????, ???? ??? ????? ???? ??? ????? ??? ???? INDEXEDDB? ???????. 1. ?? ?? ??? ? ??? (? : ??, ?? ? API ??)? ??????. 2. PWA ?? ???? ??? ?????. 3. ???? ?? ???? ????? ????? (? : ?? ? ??, ??); 4. ?? ? ???? ?? ?? ??? (Blobs ??). ??? ??? ? ? ? (? : ??? ?? ??, ??), ??? ?? ?? ??????? ??? ???? ???? LocalStorage ?? SessionStorage? ?? ????????. IndexedDB? ?????? ?? ??? ????? ???? ????? ??? ?? ????? ??? ?? LocalStorage? ??? ????? ?????. ? ??? ??? ???? ??? ?? ??? ???????. ??? ??? ??? ????. ??? ?? ??? ??? ?? indexedDB? ?? ? ? ???, ??? ??? ??? ???? ?????.

IndexEdDB ? ????? ? ????? ?? ???? ???

?? ? ??????? ?? ? ? ????? ??? ???? ????? ???? ?? ?????. ?? ???? ??, ?? ? ? ???? ??? ??. localStorage ???? ?? ????? ?? ??? ? ???? ?? ? ? ?????. ?? ???? ???? ????.

IndexEdDB ? ????? ? ????? ?? ???? ???

IndexedDB? ?? ? ???? ???? ????? ??? ?? ??? ? ???? ?????? ???? ??? API???. ???? ?? ?? ??? ?? ? ??? ??? ?????. PWA, ???? ?? ?? ????? ??? ????? ? ???? ??? ?? IndexedDB? ?? ?? ??? ??? ??? ?????.

??? INDEXEDDB? ????? ???? ? ????? ???? ??????.

IndexEdDB ? ????? ? ????? ?? ???? ???

? indexeddb? ?????? (??? ??? ?? ??)

??? ?? ?? indexeddb? ??????.

  • ?? ?? ??? ? ??? (? : ??? ??, ?? ? API ??, ??? ?? ???)? ???????.
  • ???? ?? (? : PWAS)? ????.
  • ??? (? : ??, ?? ?)? ???? ???? ????? ?? ?????.
  • ?? ??? ?? ???? ?? ?? ???? ????? (???? ??).

??? ?? ?? localStorage ?? sessionStorage ??????.

IndexEdDB ? ????? ? ????? ?? ???? ???
  • ?? ??? ? ? ? (? : ??? ?? ??, ??)? ???? ????.
  • ?? ? ????? ???? ????.
  • ???? ?? ??? ?? ??? ?????.

? localStorage ????? ??????. IndexedDB? ???? ?????????.


? IndexedDB? ?? ??

??? ???? ?? ??? ?? ??? ??????.

  • ?????? : ??? ? ???? (? ?? ?? ? ??).
  • ?? ??? : SQL? ???? ????? ??? (??)? ?????.
  • ? : ? ???? ?? ?? ??? (?? ?? ? ? ??).
  • ?? : ?? ??? ?? ??? ????? (??? ??).
  • ??? : ?? ?? ?? ???? ?? ??? ?? ? ? ????.
  • ?? : ???? ????? ???? ? ?????.

IndexedDB? ???? ?? ??? ????? (?? ???? ??? ?????). ???? ????? "??"?? ????. ???? ?? ?? ?? ???? ?????.


? ? ?? ?? ? ?? (?? ??)

IndexedDB? ?? API? ??? ????? ???? ????? ??? ?? ?????. ???? ???? ?? ??? ????.

 // ??????? ??? ?????
?? opendb () {
  ??? ??? ????? ((??, ??) => {
    const request = indexeddb.open ( 'myappdb', 1);

    // ?????? ????? ?? (?? ?? ?? ??)
    request.onupgradeneed = (???) => {
      const db = event.target.result;

      // "??"? ?? ?? ??? ??
      if (! db.objectStorenames.contains ( 'products')) {
        const store = db.createobjectStore ( 'products', {kyypath : 'id', autoincrement : true});

        // ?????? ?? ? ???? ????
        store.createIndex ( '??', '????', {?? : ??});
      }
    };

    request.onsuccess = () => resolve (request.result);
    request.onerror = () => ?? (request.error);
  });
}

?? ???? ??, ?? ? ???????.

??? ??

 ??? ?? AddProduct (??) {
  const db = await opendb ();
  const tx = db.transaction ( 'products', 'readwrite');
  const store = tx.objectstore ( '??');

  store.add (??);
  ?? tx.done;
}

?? ??? ??????

 ??? ?? getAllProducts () {
  const db = await opendb ();
  const tx = db.transaction ( 'products', 'readonly');
  const store = tx.objectstore ( '??');

  ??? ??? ????? ((??, ??) => {
    const request = store.getall ();
    request.onsuccess = () => resolve (request.result);
    request.onerror = () => ?? (request.error);
  });
}

??? ? ?? (? : ?? ?)

 Async ?? getProductsByCategory (????) {
  const db = await opendb ();
  const tx = db.transaction ( 'products', 'readonly');
  const store = tx.objectstore ( '??');
  const index = store.index ( 'category');

  ??? ??? ????? ((??, ??) => {
    const request = index.getall (????);
    request.onsuccess = () => resolve (request.result);
    request.onerror = () => ?? (request.error);
  });
}

? ?????? : ?? ??/??? ?????? ???? ??? ???? ???? ????? ??????? ( tx.done ).


? ?? ????? ?

  1. ??? ?? ????? indexeddb? ??????

    • indexedDB.open() ??? ????? ????? ????. ??? ???? ?? ??? ?? ??? ?? ??? ????.
  2. ?? ?????? ???? ?????

    • ???? ????? ?? ??? ???????. ?? ??? ?? ???? ??/???? ?? onupgradeneeded ??????.
  3. ??? ?? ???? ?????

    • ?? (? : status , createdAt )? ?? ?? ???? ???? ????.
  4. ??? ??? ??????

    • ????? ????? ????? (????? ???? 50% –80%). quotaerror ? ?? ???? ?????.
  5. ??? ???? ??????

    • ?? ?? ?? ???? ????? ?? ?? ???? ?? ???? ?????.
  6. ? ??? ??? cursor ??????

    • getAll() ?? ??? ???? ? ?? ??? ???? ???? ??? ??? ?????.
 const request = store.opencursor ();
request.onsuccess = (???) => {
  const cursor = event.target.result;
  if (cursor) {
    console.log ( 'item :', cursor.value);
    cursor.continue (); // ???? ?????
  }
};

? ?? ? ???

Raw IndexedDB? ????? ??? ?? ??? ??????.

  • dexie.js- ??? ????? ??/????? ???? ???? ??? ??????.
     const db = new Dexie ( 'myappdb');
    db.version (1) .Stores ({Products : 'id, category'});
    db.products.add? ???? ???? ({?? : '??', ???? : 'Electronics'});
  • IDB -Jake Archibald? ?? (1.5KB) ?? ?? ???.
  • LocalForage localStorage ? ?? API? ????? ?? ???? indexeddb? ?????.
  • ???? ??? ???? ?? ??? edB? ?? ? ???? ?? ????.


    ? ?? ??

    INDEXEDDB? ????? ?????. ??? ??? ???? localStorage ? ?????. ??? ?????? ???, ?? ?? ?? ?? ???? ?? ???? ?? IndexEdDB? ??? ?????.

    ??? ?? : DB? ?? ??? ?? ???? ??? ?? CRUD ??? ??????. ? ?? ??? ???? Dexie? ?? ???? ??????. ?????? ???? ??, ?? ?? ? ??? ??? ???? ?? ???? ??? ??????.

    ????? IndexEddb? ?? ???? ?? ???? ??? ? ????? ?? ?? ??? ??? ????.

    ? ??? IndexEdDB ? ????? ? ????? ?? ???? ???? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? ????? ??
? ?? ??? ????? ???? ??? ??????, ???? ?????? ????. ? ???? ?? ???? ?? ??? ?? ????. ???? ??? ???? ???? ??? ?? admin@php.cn?? ?????.

? AI ??

Undresser.AI Undress

Undresser.AI Undress

???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover

AI Clothes Remover

???? ?? ???? ??? AI ?????.

Video Face Swap

Video Face Swap

??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

???

??? ??

???++7.3.1

???++7.3.1

???? ?? ?? ?? ???

SublimeText3 ??? ??

SublimeText3 ??? ??

??? ??, ???? ?? ????.

???? 13.0.1 ???

???? 13.0.1 ???

??? PHP ?? ?? ??

???? CS6

???? CS6

??? ? ?? ??

SublimeText3 Mac ??

SublimeText3 Mac ??

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

???

??? ??

??? ????
1597
29
PHP ????
1488
72
NYT ?? ??? ??
130
836
???
Aria ??? ?????? Aria ??? ?????? Jul 02, 2025 am 01:03 AM

ariaattributesenhancewebaccessibilityforuserswithdisabilities withditionalsominticinformationstivetechnologies.theyareneededbecausemodernjavascript-heavycomponentsoftenlackthebuilt-in-inacessibilityfeaturesofnativehtmlelements ? Ariafill

RECT? ??? ?? ? ???? ??? ?????? RECT? ??? ?? ? ???? ??? ?????? Jul 08, 2025 am 02:34 AM

React ??? ???? ???? ?? ????? ??? ??? ??? ????? ?? ? ??? ??? ?????. 1. eseref? ?? ?? ?? ??? ?? ????? ???? ??? ????? ???? ???? ?? ??? ??????. 2. ARIA ??? ???? ? ?? ??? ?? ? ?? ??? ?? ???? ??????. 3. ??? ????????? ??? ?? ??? ?? ?? ??? ?? ??? ???????. 4. ???? HTML ??? ???? ??? ?? ??? ???? ? ?? ??? ????. 5. REACT? DOM? ???? ARIA ??? ???? ???? ????? ??? ??? ??? ?????? ?? ????.

HTTP ??? ????? ?? HTTP ??? ????? ?? Jul 02, 2025 am 01:18 AM

?? ??? ?? ?? ??? ? ???. ??? ??, ??? ?? ? ?? ??? HTTP ??? ??? ?? ?????. 1. CSS ? JavaScript ??? ???? ?? ??? ?? ?? ??? ??? ???? ?? ?? ??? ?????. 2. Picture Sprite ?? Inline Base64 ??? ???? ?? ?? ???? ??? ??? ?? ?? ????. 3. ???? ?? ??? ???? CDN?? ?????? ????? ????? ??? ??? ??? ??? ?? ??? ?? ??? ??????. 4.?? ?????? = "???"?? ????? ???? ??? ?? ??? ??? ????? ?? ??? ??? ??? ??? ??? ??? ?????????. ??? ??? ?? ??? ?? ??? ?????? ? ????? ??? ?? ??? ? ? ????.

React ????? ?? ???? ?? ???? ???? ??????. React ????? ?? ???? ?? ???? ???? ??????. Jul 06, 2025 am 02:32 AM

Shallowrenderingtestsacomponentinisolation,withoutchildren,whilefullrenderingincludesallchildcomponents.Shallowrenderingisgoodfortestingacomponent’sownlogicandmarkup,offeringfasterexecutionandisolationfromchildbehavior,butlacksfulllifecycleandDOMinte

React?? StrictMode ?? ??? ???? ?????? React?? StrictMode ?? ??? ???? ?????? Jul 06, 2025 am 02:33 AM

StrictMode? React?? ??? ???? ?????? ??? ?? ?? ?? ?????. ?? ??? ???? ??? ? ??, ?? ??? ?? ?????? ?? ?? ??? ?? ??? ??? ??? ??? ????? ?? ????. ?????, ???? ?? ???? ??? ????? ??? ???? ???? ???? ??? ??? ??? ??? ?? ?????. ?? ?? ??? ?? ????? ??? ???? ??? ???? ???? ???? ?? ??? ??? ?? ??? ??? ???? ?? ? ? ????. ??? ??? ?? useref ?? ?? ??? ?? ?? REF ??? ????? ?????. stri? ????? ?????

TypeScript ?? ?????? VUE TypeScript ?? ?????? VUE Jul 05, 2025 am 02:29 AM

?? ? ?? ???? ???? ?? ???? ??? ? ??? VueCli ?? Vite? ???? TypeScript ?? ????? ????. ?? ??? ??? ???? ?? ???? ?? ??? ???? ?? ? ?? ??? ?? ??? ???? ????? ?? ??? ???? ??? ??? ???? ?? ????. ?? ???? Ref ? Reactive? ??? ? ??? ?? ??? ?????? ?? ?? ?? ? ?? ???? ????? ?? ????.

Vue? ??? ???? ?? Vue? ??? ???? ?? Jul 04, 2025 am 03:10 AM

VUE ??? ?? ? ? ????? ? ? ?? ?? ??? ????. 1. V- ??? ???? ??? ???? ???? ?? ???? ??????. 2. ?? ??? ???? ?? ?? ??? ?????. 3. ?? ?? ? ???? ?? ? ?? ???? ??????. VUE?? ?? ??, ??? ?? ?? ?? ??? ??? ??? ???? ????? ? V- ??? ?? ??? ??? ??? ? ? ????. ?? ??? ?? ?? ????? ?? ??? ??? ??? ????? ?? ??? ?? ???? ???????. ?? ??? ??? ?? ?? ?? ?? ?????? ?? ??? ? ????. ???? ???? ??? ?? ??? ????, ??? ? ?? ??? ????, ??? ????? ? ??? ??? ???? ?? ?????. ?? ??, ? ??? ?? ??? ??? ???? ?? ValidateForm ???? ?????. ??? ? ???????

Next.js? ?? ? ???? ??????? Next.js? ?? ? ???? ??????? Jul 23, 2025 am 01:39 AM

Server-Siderendering (ssr) innext.jsgenerateshtmlontheserverfireachrequest, ?? ? proformanceandseo.1.ssrisidealfordynamiccontentthatchangangesfrequely, suchasserdashboards.2

See all articles