Javascript kuronga mutauro. Sumo shoma

Javascript kuronga mutauro
Mukutaura, webhusaiti yega yega inovakwa zvichienderana ne3 matekinoroji; HTML, CSS uye Javascript. HTML inobata nekuraira kwezvakasiyana zvikamu zvezvinhu zvesaiti, CSS nenzira iyo idzo zvikamu zvinopihwa uye JavaScript mabasa akaomarara sekupindura kuzviito zvevashandisi.

En zvinyorwa zvakapfuura Isu tanga tatsanangura kuti yaive CSS sisitimu uye ndokupa runyorwa rweakanakisa iwo atinogona kushandisa muLinux. Maitiro ebasa reJavascript rakanyanya kunetsa kutsanangura, tichaita sumo diki yenyaya iyi, tisati tasvika pakutaurirana nezvehurongwa hwayo.

Javascript kuronga mutauro. Sumo shoma

Chii chinonzi Javascript?

Javascript iri mutauro wechirongwa pakutanga wakagadzirwa kuti umise mapeji ewebhu kubva pakuve akamira, kunyange hazvo nhasi kushandiswa kwayo kwapararira kumatunhu asina chekuita newebhu.

Lzvirongwa zvakanyorwa muJavascript zvinodaidzwa kuti zvinyorwa uye vanomhanya mukati memuchina chaiwo unozivikanwa seinjini yeJavascript.

Ose mabhurawuza emazuva ano anosanganisira yavo vhezheni yeJavascript injini

Nekuchengetedza kwevashandisi, mabhurawuza akasiyana anoisa miganho pane izvo zvinogona kuitwa neJavascript kodhi. Semuenzaniso, kuwana kune akakosha mafaera pane diski. Nekudaro, izvi zvinogona kumbogumira mune sarudzo dzekumisikidza yeumwe neumwe.

Iko kushanda kwekodhi yeJavascript mukati mewebhu peji zvinotevera:

  1. Iyo Javascript injini yakadzika mune bhurawuza inoverenga kodhi.
  2. Iyo kodhi inoshandurwa kuita mutauro wemuchina.
  3. Mushini unoita kodhi.

Kuva mutauro wepurogiramu, Javascript inogona kuita mabasa akaita seaya:

  • Chengetedza ruzivo mukati mezvakasiyana.
  • Bata tambo tambo.
  • Mhanya zvirongwa zvinopindura kuzviitiko sekudzvanya chinongedzo.

Javascript kugona kunowedzera kuburikidza nekushandisa kweApplication Programming Interfaces (APIs)

APIs ari purogiramu maraibhurari akagadzirirwa mamwe mabasa iyo inosunungura mugadziri kubva pakunyorazve kodhi iripo Panyaya yeJavascript tinogona kutaura nezvemhando mbiri dzeAPIS

Bhurawuza Api

Vanomhanya mukati mebhurawuza uye vopindura nharaunda. Tine, semuenzaniso:

Gwaro Rechinhu Muenzaniso (DOM): Izvo zvinoita kuti zvikwanise kuita kugadzirisa kune iyo HTML neCSS kodhi yeiyo peji mukupindura kune zvimwe zviitiko. Iyi ndiyo mamiriro emawebhusaiti anotibvumidza isu kuti tione kuti peji raizoonekwa sei pamidziyo yakasiyana.

Geolocation APIa: Iyo inoshandiswa kuona nzvimbo yemushandisi uye kupindura zvinoenderana. Semuenzaniso, inoshandiswa neNetflix kuziva izvo zvemukati zvaunogona kuona munyika yako kana Google Mepu kukuratidza kwauri.

Canvas uye WebGL: Iwo akakodzera kuronga 2d uye 3d mifananidzo

Multimedia APIs: Vanobvumira kuendesa uye kugashira zvemultimedia zvemukati kubva pawebhu peji.

Chechitatu-bato APIs

Iwo akasiyana webhu masevhisi kuyedza kuwana vamwe vashandisi (uye mune dzimwe nguva ruzivo rwakawanda kubva kune avo vashandisi kuti varutengese) Ndosaka gadzira mapurogiramu ekushambadzira kuitira kuti vanogadzira vagone kusanganisa mashandiro kuti masevhisi aya anopa kune ekunze masaiti. Izvi semuenzaniso nyaya yemapeji ewebhu ayo anotendera iwe kunyoresa neGoogle kana Facebook account.

Mashandisiro anoita iyo Javascript kodhi mukati mewebhusaiti

Chokutanga pane zvose, inofanira kujekeswa kuti yega yega JavaScript script inomhanya mukati mayo mwaka yekumhanya nharaunda. Iko kune yekuuraya nharaunda kune yega yega tebhu (kana isu tikazarura akasiyana masosi mukati meiyo hwindo) kana kune akasiyana windows kana tichida. Hapana mamiriro akanangana kana, sezvatakataura, nehurongwa hwekushandisa pasina kupindira kwemushandisi.

Kutanga se inotakura iyo HTML kodhi yewebhu peji uye chinhu chechimiro chegwaro chakagadzirwa kuitira kuti chigone kuratidzwa mubrowser. Zvinhu zvinosungirirwa zvinozoiswa kune iyo peji se media, mifananidzo, uye masitayera machira. Chekupedzisira, iwo masitayera anopihwa kune akasiyana zvikamu zveiyo peji sekusarudzwa nemashizha echitaera.

Kana zvese izvi zvapera, ndipo panotanga injini yeJavascript zvichitevera kuteedzana kwataurwa pamusoro.

Muchinyorwa chedu chinotevera tinoenda neakavimbiswa runyorwa rwezvimiro zveJavascript.


Izvo zviri muchinyorwa zvinoomerera pamisimboti yedu ye tsika dzekunyora. Kuti utaure chikanganiso tinya pano.

Iva wekutanga kutaura

Siya yako yekutaura

Your kero e havazobvumirwi ichibudiswa.

*

*

  1. Inotarisira data: AB Internet Networks 2008 SL
  2. Chinangwa cheiyo data: Kudzora SPAM, manejimendi manejimendi.
  3. Legitimation: Kubvuma kwako
  4. Kutaurirana kwedata
  5. Dhata yekuchengetedza: Dhatabhesi inobatwa neOccentus Networks (EU)
  6. Kodzero: Panguva ipi neipi iwe unogona kudzora, kupora uye kudzima ruzivo rwako