Cov txheej txheem:

Kuv yuav siv jquery li cas hauv Salesforce xob laim?
Kuv yuav siv jquery li cas hauv Salesforce xob laim?

Video: Kuv yuav siv jquery li cas hauv Salesforce xob laim?

Video: Kuv yuav siv jquery li cas hauv Salesforce xob laim?
Video: yuav coj li cas kom luag nyiam 2024, Hlis ntuj nqeg
Anonim

Siv jquery hauv xob laim Cheebtsam

  1. Kauj ruam 1: download tau Jquery javascript cov ntaub ntawv. download tau jquery qhov tseeb version ntawm jquery .com/download/.
  2. Kauj ruam 2: Upload mus rau qhov chaw zoo li qub.
  3. Kauj ruam 3: Lub sij hawm rau code! Ntawm no yog cov cai yooj yim uas yuav tso saib tag nrho cov cim tseem tshuav los ntawm thaj chaw sau ntawv. <ltng:require scripts="{!$

Raws li txoj cai, peb puas tuaj yeem siv jQuery hauv xob laim?

Ua ntej koj siv tau tus jQuery tsev qiv ntawv hauv koj xob laim Piv txwv li, koj yuav tsum tsim ib qho chaw zoo li qub rau cov ntaub ntawv JavaScript. Cov peev txheej zoo li qub ua tau muab tso rau hauv ib daim ntawv lossis ib pawg ntawm cov ntaub ntawv hauv ZIP folder. Txhawm rau rub tawm cov peev txheej zoo li qub mus rau Teeb> Kev Cai Code> Static Resources.

Ib tug kuj yuav nug, Kuv yuav ua li cas suav nrog Bootstrap hauv xob laim?

  1. Kauj ruam 1: Download Bootstrap moj khaum zip file.
  2. Kauj ruam 2: Download jQuery tsev qiv ntawv.
  3. Kauj ruam 3: Upload zip file + jQuery file as a static resources in your Salesforce org.
  4. Kauj ruam 4: Siv Bootstrap moj khaum ntawm xob laim tivthaiv.

Cov neeg tseem nug, ua li cas koj suav nrog ib tsab ntawv hauv xob laim?

3 Teb. Koj ua tsis tau suav nrog cov ntawv sau nrog a tsab ntawv tag od a tiv thaiv . Koj tsuas tuaj yeem ua tau suav nrog lawv a tsab ntawv tag los ntawm app. To reference a JavaScript lub tsev qiv ntawv uas koj tau muab tso ua ib qho chaw zoo li qub, siv < tsab ntawv > tag hauv koj lawm.

Kuv yuav ntxiv cov peev txheej zoo li cas hauv Visualforce nplooj ntawv?

Txhawm rau tsim cov peev txheej zoo li qub:

  1. Los ntawm kev teeb tsa, nkag mus rau Static Resources hauv lub thawv Nrhiav nrawm, tom qab ntawd xaiv Cov Khoom Siv Zoo.
  2. Nyem Tshiab.
  3. Hauv lub npe ntawv lub thawv, sau cov ntawv uas yuav tsum tau siv los txheeb xyuas cov peev txheej hauv Visualforce markup.
  4. Hauv cheeb tsam Cov lus piav qhia, qhia ib qho kev xaiv piav qhia ntawm cov peev txheej.

Pom zoo: