An warware: jquery ya inganta cdn

Babbar matsalar ita ce ba a gudanar da lambar tabbatarwa akan yankin da ya dace. Misali, idan kun yi amfani da ingantaccen jquery don bincika ingancin CDN, za a gudanar da lambar akan yankin CDN, ba akan yankin gidan yanar gizon ku ba. Wannan na iya haifar da sakamakon tabbatarwa ba daidai ba.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-validate/1.17.0/jquery.validate.min.js"></script>

Wannan lambar tana loda ษ—akin karatu na jQuery daga tushe guda biyu daban-daban. Layin farko yana loda jQuery daga Google CDN, kuma layi na biyu yana loda jQuery daga CDN Cloudflare.

Siffar darajar suna

A cikin jQuery, ana amfani da sifa mai ฦ™imar sunan don adana ฦ™imar kirtani don ษ“angaren DOM. Ana iya amfani da wannan sifa don adana kowace kimar kirtani, gami da rubutu, lambobi, da Booleans.

Jerin halaye

Akwai halaye da yawa waษ—anda za a iya amfani da su a jQuery. An jera wasu halayen gama gari a ฦ™asa.

Shafi posts:

Leave a Comment