JQuery Unobstructive validation yog dab tsi?
JQuery Unobstructive validation yog dab tsi?

Video: JQuery Unobstructive validation yog dab tsi?

Video: JQuery Unobstructive validation yog dab tsi?
Video: Validation in ASP.NET MVC | Client Side Validation 2024, Kaum ib hlis
Anonim

jQuery Validation Unobtrusive Haiv neeg yog ib phau ntawm ASP. Net MVC HTML pab txuas ntxiv. Nws muab ib txoj hauv kev los siv cov qauv ntaub ntawv kev lees paub rau tus neeg siv khoom siv kev sib xyaw ua ke jQuery Validation thiab HTML 5 cov ntaub ntawv tus cwj pwm (uas yog " tsis pom kev "part).

Hauv qhov no, jQuery validate yog dab tsi?

Daim ntawv Kev lees paub Siv Jquery Piv txwv. Cov neeg siv khoom sab kev lees paub feem ntau yog ua tiav nrog JavaScript thiab nws ua haujlwm los muab cov lus qhia ceev ceev rau cov neeg siv khoom nkag ua ntej hu rau tus neeg rau zaub mov nrog cov ntaub ntawv. Server sab kev lees paub ua haujlwm raws li kab thib ob ntawm kev tiv thaiv cov ntaub ntawv tsis raug.

Tsis tas li ntawd, jQuery validate unobtrusive yog dab tsi? jQuery Validation Unobtrusive Haiv neeg yog ib phau ntawm ASP. Net MVC HTML pab txuas ntxiv. Nws muab ib txoj hauv kev los siv cov ntaub ntawv qauv validation rau cov neeg siv khoom siv kev sib xyaw ua ke jQuery Validation thiab HTML 5 cov ntaub ntawv tus cwj pwm (uas yog " tsis pom kev "part).

Dhau li ntawm qhov no, dab tsi yog qhov tsis muaj kev lees paub hauv MVC?

Kev lees paub tsis meej tso cai rau peb coj cov uas twb muaj lawm kev lees paub cwj pwm thiab siv lawv cov neeg siv sab los ua rau peb cov neeg siv kev paub zoo dua. Cov Tsis muaj teeb meem cov ntawv sau tau suav nrog cov tshiab MVC tej yaam num hauv Visual Studio, tab sis yog tias koj tsis muaj lawv koj tuaj yeem tau txais los ntawm NuGet.

jQuery validation plugin yog dab tsi?

jQuery Validation Plugin Ib tug thawj validation plugins los ntawm 2006. Nws cia koj qhia kev cai kev lees paub txoj cai siv HTML5 tus cwj pwm lossis JavaScript khoom. Nws kuj tseem muaj ntau txoj cai ua ntej siv thiab muab API kom yooj yim tsim cov cai ntawm koj tus kheej.

Pom zoo: