slim版和標準版的差別:1、slim版是一種簡化版,比一般版本缺少Ajax和特效等模組;如果開發者不使用AJAX、效果等功能,就可以選擇使用Slim版的jQuery。 2.slim版比一般版本小,slim版比一般版本小了約6k個位元組;slim版壓縮大小是23.6kb,而標準版本的大小是30kb。
本教學操作環境:windows7系統、jquery3.6版本、Dell G3電腦。
jQuery3.0之後除了標準版本之外,還推出了一個全新的模式版本,我們可以稱之為瘦身的版本,官方命名為「Slim」。
slim,百度翻譯:細長的; 苗條的,纖細的; 微小的; 無價值的。
jquery slim版和標準版的區別
slim版比普通版本缺少Ajax和特效等模組。如果你不使用 AJAX、效果等功能,你可以選擇使用這個廋身版「Slim」的 jQuery,它的壓縮大小是 23.6kb,而標準版本的大小是 30kb。
說明原文
Sometimes you don't need ajax, or you prefer to use one of the many standalone libraries that focus on ajax requests. And often it is simpler to use a combination of CSS and class manipulation for all your web animations. Along with the regular version of jQuery that includes the ajax and effects modules, we've released a “slim” version that excludes the modul . performance concern these days, but the slim build is about 6k gzipped bytes smaller than the regular version – 23.6k vs 30k.
Google翻譯:##Ajax,或者你更喜歡翻譯:##Ajax,或者你更喜歡使用專注於Ajax請求的獨立庫中的一個。對於所有的Web動畫,通常使用CSS和類別操作的組合更為簡單。除了包含ajax和特效模組的常規jQuery版本之外,我們還發布了一個排除這些模組的「超薄」版本。 jQuery的大小現在很少是一個負載效能的問題,但是超薄的版本比普通版本小了大約6k個位元組(23.6k VS 30k 壓縮後)。
大小截圖:
bootstrap 4,官方手冊中介紹的預設使用的slim版本。
擴充知識:jQuery 3大版本的差異總結
1.x、2.x、3.x 三大系列的區別1,IE 的支持情況比較
(1)情況分析
1.x:支持ie6、ie7、ie8
2.x、3.x:不支援ie6、ie7、ie8
(2)選擇建議
如果需要相容ie678:只能選擇1.x
如果不需要相容ie678:可以選擇2.x、3.x。因為 1.x 中有大部分程式碼是對老舊瀏覽器所做的相容,這就增加了運作的負擔,影響了運作效率。
2,外掛程式的支援情況比較
(1)狀況分析
由於jQuery 的版本都是不向後相容的,導致了基於jQuery 開發的外掛程式會有相容性問題。也就是說新版的 jQuery 推出後,原有的外掛可能無法正常使用,需要外掛程式作者重新開發新版本。
(2)選擇建議
為了確保與各種外掛程式有更好的相容性可以選擇 1.x 的版本。
3,新特性比較
(1)2.x 相較於1.x 沒有增加什麼新特性,主要是去除了ie678 的支持,提升了性能,減小了體檢。
(2)3.x 相較於先前版本,增加了許多新特性,也改變一些過去的特性
1.x 常用版本
- 1.4.2:穩定性和相容性都很出色,插件最多,但效能不如下面後面的幾個版本。
- 1.7.2:效能提升,插件第二多,ajax 和 attr 等 api 有少許修改。
- 1.8.3:最後一個支援IE6 的穩定版本
- 1.9.1:開始移除了不少方法,事件綁定推薦使用on 方法一個代替所有的。
- 1.12.4:1.x 時代最後一個穩定版本,只支援IE8,不支援IE6/7
- 【推薦學習:
以上是jquery中slim版和標準版的差別是什麼的詳細內容。更多資訊請關注PHP中文網其他相關文章!

Include:1)AsteeplearningCurvedUetoItsVasteCosystem,2)SeochallengesWithClient-SiderEndering,3)潛在的PersperformanceissuesInsuesInlArgeApplications,4)ComplexStateStateManagementAsappsgrow和5)TheneedtokeEedtokeEedtokeEppwithitsrapideDrapidevoltolution.thereedtokeEppectortorservolution.thereedthersrapidevolution.ththesefactorsshesssheou

reactischallengingforbeginnersduetoitssteplearningcurveandparadigmshifttocoment oparchitecent.1)startwithofficialdocumentationforasolidFoundation.2)了解jsxandhowtoembedjavascriptwithinit.3)

ThecorechallengeingeneratingstableanduniquekeysfordynamiclistsinReactisensuringconsistentidentifiersacrossre-rendersforefficientDOMupdates.1)Usenaturalkeyswhenpossible,astheyarereliableifuniqueandstable.2)Generatesynthetickeysbasedonmultipleattribute

javascriptfatigueinrectismanagbaiblewithstrategiesLike just just in-timelearninganning and CuratedInformationsources.1)學習whatyouneedwhenyouneedit

tateractComponents通過theusestatehook,使用jestandReaCtTestingLibraryToSigulationsimintionsandIntractions and verifyStateChangesInTheUI.1)underthecomponentAndComponentAndComponentAndConconentAndCheckInitialState.2)模擬useruseruserusertactionslikeclicksorformsorformsormissions.3)

KeysinreactarecrucialforopTimizingPerformanceByingIneFefitedListupDates.1)useKeyStoIndentifyAndTrackListelements.2)避免使用ArrayIndicesasKeystopreventperformansissues.3)ChooSestableIdentifierslikeIdentifierSlikeItem.idtomaintainAinainCommaintOnconMaintOmentStateAteanDimpperperFermerfermperfermerformperfermerformfermerformfermerformfermerment.ChosestopReventPerformissues.3)

ReactKeySareUniqueIdentifiers usedwhenrenderingListstoimprovereConciliation效率。 1)heelPreactrackChangesInListItems,2)使用StableanDuniqueIdentifiersLikeItifiersLikeItemidSisRecumended,3)避免使用ArrayIndicesaskeyindicesaskeystopreventopReventOpReventSissUseSuseSuseWithReRefers和4)

獨特的keysarecrucialinreactforoptimizingRendering和MaintainingComponentStateTegrity.1)useanaturalAlaluniqueIdentifierFromyourDataiFabable.2)ifnonaturalalientedifierexistsistsists,generateauniqueKeyniqueKeyKeyLiquekeyperaliqeyAliqueLiqueAlighatiSaliqueLiberaryLlikikeuuId.3)deversearrayIndiceSaskeyseSecialIndiceSeasseAsialIndiceAseAsialIndiceAsiall


熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

Video Face Swap
使用我們完全免費的人工智慧換臉工具,輕鬆在任何影片中換臉!

熱門文章

熱工具

MinGW - Minimalist GNU for Windows
這個專案正在遷移到osdn.net/projects/mingw的過程中,你可以繼續在那裡關注我們。 MinGW:GNU編譯器集合(GCC)的本機Windows移植版本,可自由分發的導入函式庫和用於建置本機Windows應用程式的頭檔;包括對MSVC執行時間的擴展,以支援C99功能。 MinGW的所有軟體都可以在64位元Windows平台上運作。

EditPlus 中文破解版
體積小,語法高亮,不支援程式碼提示功能

Atom編輯器mac版下載
最受歡迎的的開源編輯器

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3 英文版
推薦:為Win版本,支援程式碼提示!