国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

??
React ???? ??????
?? 1 : ?? ???
?? 2 : ?? ???
???? ?? ??? ? ??? ?? ??????
?? ??
?? ? ?? ?
??? IT ??
?? ?? ??
? ? ????? CSS ???? ?? ?? ??? : ????? ??? ???? ????

?? ?? ??? : ????? ??? ???? ????

Apr 07, 2025 am 09:20 AM

?? ?? ??? : ????? ??? ???? ????

React? ?? ? ? ???? ?? ?? ? ? ???? ?? ?? ???? ??? ?????. ?? ? ?? ???? ?? ?? ???? ???? ?? ????? ?? ???? ??? ?????.

? ??? ??? ? ???? ???? ?? ??? ? ?? ???? ???? ??? ???? ?? ???? ?? ?? ???? ? ? ??? ?? ? ??? ??? ?????. ? ????? REACT ? JavaScript? ???? ????? ?????. Jest ? React Testing Library? ?? ?? ?? ??? ? ? ??? ???? ????.

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

  • ?? ???? ????? ??? ?????. ?? ?? ??? ? ??? ??? ? ????.
  • ?? ? ?? ??? (E2E)? Cypress ?? Selenium? ?? ??? ? ??? ??? ???? ???? ?? ? ???? ?? ????? : ?????, ?? ??, ?? ?? ?. ????? ???? ??? ????? ?? ??? ??? ?? ?????.
  • ?? ???? ? ?? ???? ????. ?? ????? ?? ??? ??? ????? ????? E2E ????? ?????. ?? ??, Jest?? ?? ?? ????? ???? ?? ???? ???????. Jest? ??????? JSDOM? ???? ????? ?? ??? ?? ?? ???? API? ??????? ??? ?? ??? ?? API ??? ????? ? ? ????.

???? ? ? ?? ?? : React Applications??? ?? ??? ? ?? ???? ??? ???? ???? ??? ????? .

React ???? ??????

??? ???? ??? React ?? ???? (Github?? ?? ??)? ??????. ??? ?? ????? ????? ? ??? ??? API ? reqres.in? ??????.

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

... ?? API? ?? ???? ?????.

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

 <code>LoginModule/ ├── components/ │ ├── Login.js // 渲染LoginForm、錯(cuò)誤消息和登錄確認(rèn)│ └── LoginForm.js // 渲染登錄表單字段和按鈕├── hooks/ │ └── useLogin.js // 連接到API 并管理狀態(tài)└── index.js // 將所有內(nèi)容整合在一起</code>

?? 1 : ?? ???

?? ?? ???? ????? ???? ???? Spotify?? ?? ??? ???? ?? ????? ? ??? ?? ?? ??? ??? ?? ? ? ????.

??? ???? ????? ??? ???? "???? ? ????? ????"????? ??? ? ??? ??? ??? "?? ?? ?? ???? ?????? ??????"???.

??? ??? ???? (???? ?? ??? ?? ??? ??? ??????).

 <code>LoginModule/ ├── components/ │  ├── Login.js │  ├── Login.unit.test.js │  ├── LoginForm.js │  └── LoginForm.unit.test.js ├── hooks/ │  ├── useLogin.js │  └── useLogin.unit.test.js ├── index.js └── index.unit.test.js</code>

GitHub?? ??? ???? ??? ?? ?? ???? ???? ??? : ???? : ???? ??? (JEST? ?? ??)? ?????? ?? ????? ??????. 4 ?? ?? ??? ??? ?? 100% ?? ??? ?? ? ? ????.

100% ?? ??? ????? ?????? ??? ?????? ?????.

Onlogin React Hook ??? ?? ? ?? ??? ? ??? ??? ???. React ??? ???? ??? ????? ??? ???? ?? ?? ???? ????.

 ??? ( '???? ??? ??', async () => {
 // ???? API ?? ??? ????????
  .spyon (?, '??')
  .MockResolvedValue ({json : () => ({Token : '123'})});

 const {result, waitfornextUpdate} = renderHook (() => uselogin ());

 act (() => {
  result.current.onsubmit ({{
   ??? : '[??? ??]',
   ???? : '????',
  });
 });

 // ??? ?? ??? ?????
 expling (result.current.state) .toequal ({{
  ?? : '??',
  ??? : null,
  ?? : null,
 });

 WaitforNextUpdate ()? ?????.

 // ?? ??? ???? ??? ??? ???? excome (result.current.state).
  ?? : '??',
  ??? : {
   ??? : '[??? ??]',
  },
  ?? : null,
 });
});

? ???? (React Hooks ??? ?????? ??? ??? ?? ???? ??? ???) ???? ?? ?? ????.

??, ??? ?? ?? ??? '?? ?'?? '?? ?'?? ?????. ? ?? ?? ??? ????? ???? ???? ????? ?? ?? ?? ? ????. ?? ????? ?????? ???? ???? ??? ??? ???? ????? ???? ?????????.

?? ?? ????? ??? ? ???????. ?? ?? ???? "??"? ???? ? ??? ????? ?? ??? ????? ?? ??? ??? ???????.

?? 2 : ?? ???

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

 <code>LoginModule/ ├── components/ │  ├── Login.js │  └── LoginForm.js ├── hooks/ │  └── useLogin.js ├── index.js └── index.integration.test.js</code>

? ???? ??? : ?? ?? : ?? ????? ???? ???? ???? ??????. ?? ???? ????? 100% ?? ??? ?? ? ? ??? ???? ??? ??? ??? ?? ?? ????.

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

 test ( '???? ???', async () => {
  ??
    .spyon (?, '??')
    .MockResolvedValue ({json : () => ({Token : '123'})});

  ???(<loginmodule></loginmodule> );

  const emailfield = screen.getByRole ( 'textbox', {name : 'email'});
  const passwordfield = screen.getByLabelText ( 'password');
  const button = screen.getByRole ( '??');

  // fireeevent.change ??? ???? ????? (emailfield, {target : {value : '[email protected]'});
  fireeevent.change (passwordfield, {target : {value : 'password'}});
  fireeevent.click (??);

  // ?? ??? ?????.
  expling (button).

  ?? ? (() => {
    // ?? ??? ? ???.
    expling (emailfield) .not.tobeinthedocument ();
    expling (passwordfield) .not.tobeinthedocument ();

    // ?? ??? ? ??? ??? ?????. const loggedIntext = screen.getByText ( '??? AS');
    ?? (loggedintext) .tobeinthedocument ();
    const emailaddresstext = screen.getBytext ( '[??? ??]');
    expling (emailaddresstext) .tobeinthedocument ();
  });
});

? ???? ???? ???? ?? ??? ???? (??,?? ?? ? ???? ?? ???? ???? ???? ???? ?? ?????. ?? ????? ?? ??? ?? ?? ?? ????? ?????. ??? ??? ??? ???????? ? ???. ???? ?? ?? ?? ?? ?? ?? ? ??? ?? ????? .

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

??? ????? ?? ?? ? ?? ??? ?? ?? ?? ???? ????? ??? Github???? ?? ?? ????.

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

?? ??? ? ?? ???? ???? ?? ? ?? ???? ???? ????? ? ??? ???? ??? ?? ??? ???. LoginModule? ??? (?? ????? ?? ??)? ???? ??? ??? ????? ??? ????????.

??, Onlogin ??? ??? ? ??? ????. ?? ? ??? ?? ?? ?? ?????. ??? ?? ??? ???? Onlogin? ?? ??? ?? ????? ??, ??? ??? ????? ??? ???? ?? ?? (Unit) ???? ???????. (??? ? ?? loginModule?? ???? ???? ??? ???????.)

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

?? ?? ???? ?? ?? ? ?? ??? ?? ??? ???? ???? ? ? ??????. ?? ??, ? ??? ??? ????? ?? ??? ??? ??? ?? ???? ?? (? : ???? ?? ???, ???? ??, ?? ?? ??) ?? ????? ???? ??? ??? ?? ????? ?? ??? ?????.

?? ??

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

?? ? ?? ?

??? ???? ?? ??? LoginModule? ???? ?? ??? ?? ??? ???????.

 const button = screen.getByRole ( '??');
fireeevent.click (??);

?? (button) .not.tobeinthedocument (); // ?? ??? ??? ??? ????!

DOM ??? ?????? ?? ?? ??? ?????? ?? ? ? ????.

 const button = screen.getByRole ( '??');
fireeevent.click (??);

?? ? (() => {
 ?? (button) .not.tobeinthedocument (); // ?, ?? ??});

??? ?? ????? ????? ??? ????????? ????? ??? ???? ??? ?? ?? ??? ?? ??? ?? ??????? ?? ????? Waitfor ??? ?????.

 // ?? ??? ???? ?? ? (() => {
 ?? (button) .not.tobeinthedocument ();
});

// ?? ?? ?? ???? ????? const volictionText = getByText ( '??? [??? profected]');
expost (quicationText) .TobeIntheDocument ();

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

 // ?? ???? ??? ?? ?? ? (() => {
 const quicationText = getByText ( '??? [??? ??]');
 expost (quicationText) .TobeIntheDocument ();
});

// ?? ?? ??? ?????? (??) .not.tobeinthedocument ();

??? ????? ??? ?? ?? Waitfor Callback?? ????? ?? ?? ????.

 ?? ? (() => {
 ?? (button) .not.tobeinthedocument ();

 const conficationText = screen.getByText ( '??? [??? profected]');
 expost (quicationText) .TobeIntheDocument ();
});

?? ?? ?? ??? ??? ??? ??? ??? ?????, ?? ???? ??? ??? ?? ? ??? ?? ?? ???? ???? ??? ??? ? ????. ? ???? React Testing Library Common Error?? "?? ?? ? ??? ?? ?? ?"? ??????.

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

 const button = screen.getByRole ( '??');
const emailfield = screen.getByRole ( 'textbox', {name : 'email'});

// fireeevent.change ??? ????? (emailfield, {target : {value : '[email propected]'});

?? ? (() => {
 // ??? ????? ??? ?????? (button) .not.tobedisabled ();
  expling (button) .toHavetextContent ( '??');
});

// fireeevent ??? ??????. Click (??);

?? ? (() => {
 // ??? ? ?? ???? ??? ?? (button) .not.tobeIntheDocument ();
});

??? ?? ? ????? ???? ??? ?? FindBy ??? ??? ? ????. ??????? ??? ?????.

??? IT ??

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

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

 IT ( '???? ??? ??? ??', async () => {
 // ???? ?? ???? ??? ? ????
  ?? (button) .tobedisabled ();
  expling (button).
?
 ?? ? (() => {
  ?? (button) .not.tobeinthedocument ();
  expling (emailfield) .not.tobeinthedocument ();
  expling (passwordfield) .not.tobeinthedocument ();
?
  const conficationText = screen.getByText ( '??? [??? profected]');
  expost (quicationText) .TobeIntheDocument ();
 });
});

? ???????? ???? ????? ??? ?? ??? ? ???, ??? ?? (??? ???? ?)?? ?? ?? ?? (???? ???? ?)?? ????? ??? ? ????.

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

 test ( '???? ???', async () => {
 // ???? ?? ???? ??? ? ????
 //?? ??? ?????.
  expling (button).
?
 ?? ? (() => {
  // ?? ??? ? ???.
  expling (emailfield) .not.tobeinthedocument ();
  expling (passwordfield) .not.tobeinthedocument ();
?
  // ?? ??? ? ??? ??? ?????. const volictionText = screen.getByText ( '??? [??? propected]');
  expost (quicationText) .TobeIntheDocument ();
 });
});

? ??? ???? ??? ???? ???? ??? ???? ??? ??? ??? ??? ??? ??? ?? ??,? ?? "???? ???"? ?????. ??? Jest? ?? ????? ?? ??? ???? ???? ??? IT ??? ??? ????? ??? ???? ? ??????. ???? ???? ??? ?? ?? ???? ?????.

? ??? ??? ???? Jest-Expect Message?? ?????? ? ??? ?? ?? ???? ?? ? ? ????.

 expling (??, '??? ??? ????? ????').

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

?? ?? ??

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

??? ??, ??? ???? ??? ?? ? LoginModule ??? ?? ?? ?? ?? ???? ????? ???? ?? ? ??? ???? ??????. ???? ??? ????? ?? ??? ??? ?? ???? ????? ?? ????? ?? ????, ADR?? ????? ? ?????.

?? ??? ??? ? ???? ? ??? ?? ???? ??????? ??? ??????. ???? "???"? ?? ???? ?? ???? ??? ?? ? ??? ??? ?? ? ??????. Jest? ?? ?? ???? ???? ?? ???? ?? ???? ?? ??? ?? ??? ??? ???? ? ??? ? ? ????.

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

? ??? ?? ?? ??? : ????? ??? ???? ????? ?? ?????. ??? ??? 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)

???

??? ??

?? ????
1783
16
Cakephp ????
1728
56
??? ????
1577
28
PHP ????
1442
31
???
'?? ??? CSS'? ?????? '?? ??? CSS'? ?????? Jun 24, 2025 am 12:42 AM

CSS? ??? ??? ????? ????? ??? ? ?? CSS? ????? ?? ??????, ?? ?? ? ??? ??, ??? ?? ?? ??? CSS ? ????? ?? ??? ?? ???? ???? ??? ??? ???. 1. ?? CSS? ???? HTML? ?? ?????. 2. JavaScript? ?? ??? CSS ??; 3. ??? ??? ???? ?? ???? ????? ??????. 4. CSS? ???? ???? ??? ????. ?? CSS? ???? ?? ??? ???? Rel = "Preload"?????? ????, ??? ?? ??? ????? ???? ??? ?? ? ??? ???? ??? ?????.

?? ? ?? CSS : ?? ?? ??? ?????? ?? ? ?? CSS : ?? ?? ??? ?????? Jun 20, 2025 am 12:45 AM

TheBestoproachforcssdspectionseproject'sspecificneeds.forlargerProjects, externalcsSisbetterduetomainabainabainabilitableability ? forsmallerprojectsorsingle-pageapplications, ?? csmightbemoresuitable.it 'scrucialtobalanceprojectsize, ??

? CSS? ???? ??????? ? CSS? ???? ??????? Jun 19, 2025 am 12:29 AM

???, cssdoesnothavetobeInlowercase. ???, lowercaseisRecomedended for : 1) ??? ? ??, 2) ??? ?? rorsinerrorsinerrorsIngerRorsIngerRorsInteChnologies, 3) ??? ?? ??, ? 4) ?? ? ???? ????.

CSS ?? ??? : ??? ?? ????? CSS ?? ??? : ??? ?? ????? Jun 20, 2025 am 12:09 AM

cssismostlycase-Insensitive, buturlsandfamilynamesarecase-insensitive.1) propertiesandvalueslikecolor : red; anteOtcase-inditive.2) urlsmustmatchtheserver'scase, ?? ??,/images/logo.png.3) fontfamilynames'opens'mustoccase.

autopRefixer ? ???? ??? ?????? autopRefixer ? ???? ??? ?????? Jul 02, 2025 am 01:15 AM

AutoPrefixer? ?? ???? ??? ???? ?? ?? ???? CSS ??? ???? ???? ?????. 1. ????? ???? ???? ???? ??? ?????. 2. PostCSS ???? ??, CSS? ?? ???? ???? ?? ???? ??? ???? ??? ?? ??? ?????. 3. ?? ???? ???? ??, ??????? ?? ? ?? ???????? ????? ?? ?????. 4. ???? ???? ???? ???? ?? ?? ????, ???? ?? ??? ?? ???? ???? ????? ?? ???? ?? ????.

CSS ??? ? ?????? CSS ??? ? ?????? Jun 19, 2025 am 12:34 AM

CSSCOUNTERSCANAUTOMALLYNUMBERSESSESSENDS.1) USECOUNTER-RESETTIONITIALIZE, CORKENT-INCREMENTTOINCERES, andCOUNTER () ORCOUNTERS () TODISPLAYVALUES.2) COMPINEWITHJAVAISCRIPTORDINAMICCONTENTTOEREACCUTERUPDATES.

CSS : Case Case? ?? ???? ????? CSS : Case Case? ?? ???? ????? Jun 19, 2025 am 12:27 AM

CSS?? ??? ? ?? ??? ?? ??? ???? ??, ??, URL ? ??? ?? ????? ?? ?? ??? ?????. 1. ???? ?? ??? ??? ? ???? ?? ?? ??? ??????. 2. ?? 16 ?? ??? ?? ??? ?????, ??? ???? ???? ?? ??? ??? ???? ????. 3. URL? ??? ???? ???? ??? ??? ? ????. 4. ??? ?? ?? (??)? ??? ???? ??? ? ???? ??????? ???????.

Conic-Gradient () ??? ?????? Conic-Gradient () ??? ?????? Jul 01, 2025 am 01:16 AM

theconic-gradient () functionincsscreatescurcular gradientsthattroTecolorstopsaroundacentral point

See all articles