MyDailyLearn开源项目

我要开发同款
匿名用户2021年11月10日
212阅读

技术信息

行业分类
云计算
开源地址
https://github.com/darklife/darkriscv
授权协议
Readme

作品详情

MyDailyLear

HereissomeimportatcommadsorcodesippetsodifferettopicsthatIamlearigimydevelopiglife.

TableofCotetsMyDailyLearTableofCotetsGitJavaScriptVaillaJavaScriptVueNodeReactAgularGulpUitTestigDockerGitCofiguregitCofigfilelocatiosCofigureuser'same&emailVariousimportatcofigcommadsBrachigCreateewbrachDeletebrachQuickswitchbacktopreviousbrach/commit-sha/referecesetc.BrachlistigReameabrachTrackewbrachCheckoutbrach/commit-sha/refereces/etc.(goforward/backward)Add,Commit,Amed,Pull,Push,Merge&DeleteCheckoutforward/backwardCherryPickStashigLoggigShow-moreloggigRecoveryorResetResetusigreflogSquashRebaseChagetheauthorofaearliercommitChagethecommitmessageofaearliercommitReorderigcommitsusigrebaseRebaseoptiosWorkigwithremotesCoflictse.g.Mergigreleasebrachitomasteradwehave3foldersfoo/,bar/,js/.Nowwattoresolvecoflictssuchasfoo/,bar/shouldlikemasteradjs/shouldlikereleasebrach.GitSubmodulesSomeimportatoperatiosCleaupgarbageiremoterepositoryPrueemptycommitsCreateaewWorkTreeadworkparalleyithesamerepo(diffeetbrach)Addasiged-off-byfieldiacommitHowtotellgittoigorelocalchages(alreadytrackedbygit)?GeerateaGitHash(SHA1)forspecificcotetsTagadReleasesFacyCommadsCoceptsTrackedvsUtrackfileGitHubvsGitCommitObjectThreeareaswherecodelivesThreetypesofgitReferecesDifferettypesofHEADTheSeveRulesofaGreatGitCommitMessageDifferecebetweeHEAD~adHEAD^JavaScriptVaillaJavaScript

Hoistig

ExplaiHoistigiJavaScriptWhyHoistigImportat?First,memoryissetasideforallecessaryvariablesaddeclaredfuctiosFuctioExpressiosareeverhoisted!TheyaretreatedasassigmetsCheckifreturstatemetisatthetopAalyzigHoistigLoadOrderIAalyzigloadorderIIAalyzigLoadOrderIIIThevariablesdeclaredwithletorcostarehoistedbutstayuiitialised

Closure

ClosuresadReferecesClosuresHelpiFuctioCostructioZoesLoopswithClosure:AcautioaryTale

PrototypesadIheritace

Prototypes!WhatisCostructorcall?Whatis[[Prototype]]adwheredoesitcomefrom?Howdoes[[Prototype]]affectthebehaviorofaobject?Whatisthe3differetwaystofidwhereaobject[[Prototype]]likedto?Discuss:__proto__,[[Prototype]],prototypeTwomechaismalwaysexistsiJavaScirpt--LexicalScopes&PrototypeChaiObjectOrietediJavaScriptExplaatioofPrototypeWheaiheritedfuctioisexecuted,thevalueofthispoitstotheiheritigobject,ottotheprototypeobjectwherethefuctioisaowpropertyNewobjectusigObject.create()(ES5)NewobjectusigclasssytacticalsugarSimilariObjectpatterUsehasOwProperty()tokowifthepropertyexistsasit'sowpropertyPrototypeshadowigAvoidShadowigObjectLikedOLOO(ObjectLikedtoOtherObject):delegatedobjectsCoverttheabovecodestoOLOOClassiES6DifferetwaystocreateobjectsadtheresultigprototypechaiDigitosomeexamplesfromMDNNotesWehavetocallsuperfirsticostructor

Coercio

ExplaiCoercioiJavaScriptwithexamples

Class

PublicclassfieldsPrivateclassfieldsPublicadstaticproperties

JavaScriptthiskeyword

Howdoesthiskeywordchageidifferetcotext?1.thisiGlobalCotext2.thisiObjectCostructor3.thisiaObjectMethod4.thisiaSimplefuctio5.thisiaArrowfuctio6.thisiEvetlisteerDefaultRulesHardBidigofthisPriorityofthisbidig(top->bottom:hight->low)

ImmediatelyIvokedFuctioExpressio(IIFE)

EvetLoop

UderestigAsychroousJavaScript---EvetLoopExample1Example2Example3:CallbackHell

JavaScriptReactivityUsigObject.defieProperty()

JSQuestiosadAswers

Whatisasychroousprogrammigadwhyisitimportat?ExplaiEvetDelegatioDescribeEvetBubbligWhatarebeefitsofamedfuctiooveraaoymousfuctioDifferecebetweetargetvscurretTargetWhatisFactoryFuctio?Differece:ull,udefiedadudeclared?WhatdoesJavaScriptgetadgetterkeyworddo?DefieagetteroewobjectsiobjectiitializersDefiigagetteroexistigobjectsusigdefiePropertyUsigacomputedpropertyGetvsdefieProperty()WhatisthetwocoditiosofbeigModule?HowtogetUiquevaluesofaArray?HowtoremoveallfalsyvaluesfromaArray?HowtocreateaEmptyObject?Howtorequirefuctioparametersbyforce?HowtogetQueryStrigParameters?WhatisDeboucigiJavaScript?Howtodetermiewhatshouldbethethiskeywordvalue?CovertastrigtospialstrigWhattypeofScopigRule(s)doesJavaScripthave?Whatare3differetwayswecacreateaewScopedvariable?Whatarethefourthigstheewkeywordactuallydoeswheweputifrotofafuctiocall?Whatisthedifferetbetweeudeclaredadudefied?WhatistheolyvalueiJSthatisotequaltoitself!?Whatdoeshappewhewedeclareavariablewithvaradlet?Compare:ull,udefied,NaNImplemetaEvetEmitterthatsupportsstadardoperatiosHowtoWriteOptimizedJavaScript?VueWhatisVue.js?IstalligKowOptiosforVueIstaceKeySetecesForLoopBidAttributeadClassNameDyamicCompoetsPrevetDestroyigcompoetswherederigDyamiccompoetsLazyLoadigOff-screeCompoetsDisableRe-rederigwithv-oceOutputRawHTMLwithv-htmlDirectivesGetEvetDatafromtheEvetPassOwArgumetswithEvetObjectModifyigadEvetwithModifiersListeigtoKeyboardEvetsWriteJavaScriptCodeitoTemplateUsigTowWayBidigv-model="variable"TwoWayBidigfromChildtoParetReactigtoChagigwithComputedPropertiesDyamicStyligwithCSSClassesSettigStylesDyamicallywithoutCSSClassesStyligElemetswithaArraySytaxCoditioigRederigwithv-if/v-elseAlterativeofv-ifusig<template>Usev-showifwedo'twattodetachelemetfromDOMRederigListswithv-forUseofv-forwith<template>LoopigthroughObjectsLoopigthroughaListsofNumbersKeepigTrackofElemetsWheusigv-forAccessTemplatefromVueModulebySettigaRefMoutigaTemplateVueJSistaceLifeCyclePassHTMLCotetfromParettoChildUsig<slot>HowDirectivesWorksHTML5HistoryModeDiffereceBetweev-modeladv-bidVuexServiceWorkerCachigCofig-ProgressiveWebAppToggligSimilarElemetsVueObservable-AlteratetoVuexVueRouterhas3TypesofGuardsVueFiltersDefieLocalFilterDefieaGlobalFilterChaiedFilterFilterwithArgumetsMixiVueCheatSheetsVuexCheatSheetsShortcutsIitialRederVirtualDOMRutime+Compilervs.Rutime-olyCompileTemplatesiClietMauallyReactivityiDepthReactivityisideComputedPropertiesParet-childCommuicatioReactWhatisReactIstalligUseDefaultPropsUsePropTypestoDefiethePropsWeExpectUderstadigReactsetStateUpdateaStatePropertyPassigaFuctiotosetState()AccessPreviousStateusigUpdaterStatelessFuctioCompoet,StatelessCompoetadStatefulCompoetCompoud,UcotrolledadCotrolledCompoetsCompoudCompoetUcotrolledCompoetCotrolledCompoetReactFragmetReactAppLife-cycleWalkthroughUderstadCotextAPIReferecigCotextiStatelessFuctioalCompoetsHigherOrderCompoetAlterativeStateIitializatioReduxvsCotextAPILifeCycleHooksorMethodsResadtheDOMWhetoUseRefsCreatigRefsAccessigRefsUseCallbackoImageLoadwithRefReactRouteFamiliarwithVariousReactRouterLibrariesHowtoNotNavigatiowithReactRouterThree(3)TypesofRouterReactPortalsUsageofPortalsReactQuestiosadAswersHowtoPrevetfromre-rederig?WhetoUseCompoetIsteadofPureCompoet?Whatistherederprops?ReactUitTestsvsItegratioTestsforCompoets?MigratiofromClasstoFuctioCompoetNodeAgularGulpUitTestigDockerDockerIstall(latestoraspecificversio)RudockerasdaemoRemoveallcotaiersRemoveallimagesRuaimagepritlogofacotaierExecacotaierRuimagewithbidigport

功能介绍

MyDailyLearn Here is some important commands or code snippets on different topics that I am learn...

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论