Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
56 views

Javascript Podsetnik: Objekat Osobine Metode

This document summarizes key Javascript objects, methods, and functions. It covers the Math, Array, Window, Document, Date, String, and Regular Expression objects. For Math, it lists properties and methods like PI, round(), ceil(), floor(), and trigonometric functions. For Array, it covers length, sort(), push(), and other array methods. Window methods include alert(), prompt(), setTimeout(). The Document object properties include forms, images, and links. Date methods parse dates and times, while String methods manipulate and format strings.

Uploaded by

ducke89
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
56 views

Javascript Podsetnik: Objekat Osobine Metode

This document summarizes key Javascript objects, methods, and functions. It covers the Math, Array, Window, Document, Date, String, and Regular Expression objects. For Math, it lists properties and methods like PI, round(), ceil(), floor(), and trigonometric functions. For Array, it covers length, sort(), push(), and other array methods. Window methods include alert(), prompt(), setTimeout(). The Document object properties include forms, images, and links. Date methods parse dates and times, while String methods manipulate and format strings.

Uploaded by

ducke89
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Javascript podsetnik

Objekat

Osobine

Metode

Math

PI
E

round(0.60)
ceil(0.49)
floor(-4.60)
random( )
min(-3,2)
max(5,7)
sqrt(25)
abs(-3)
sin(3.5)
cos(2.7)
tan(5)

length

sort( )
reverse( )
concat( )
join( )
slice( )
push( )
pop( )
toString( )

(Matematike funkcije)

Array
(Nizovi)

Window

alert
open
close
confirm
focus
prompt
clearTimeout
setTimeout(funkcija
, brojMilisekundi)

(Rad sa prozorima)

document

cookie
bgColor
alinkColor
vlinkColor
forms
images
linkColor
links
location
title

clear
close
open
write
writeln

Javascript podsetnik - Date i String


Objekat

Osobine

Date

String

Metode
getDate( )
getDay( )
getHours( )
getMinutes( )
getMonth( )
getSeconds( )
getTime( )
getTimeZoneoffset( )
getYear( )
parse(datum)
setDate(brojDana)
setHours(brojSata)
setMinutes(brojMinuta)
setMonth(brojMeseca)
setSeconds(brojSekundi)
setTime(vreme)
setYear(brojGodine)
toGMTString( )
toLocaleString( )
UTC(gg, mm, dd [,hh][,mh][,sec])

length
prototype

escape("string")
eval("matematicki_izraz")
link("linkURL")
parseInt( "StringBroj" [,osnova] )
big()
blink()
bold()
italics()
fontColor()
fontSize()
charAt(broj)
indexOf(traziString [,odPozicije])
lastIndexOf(traziString
[,doPozicije])
strike()
sub(), sup()
substring(prvi, poslednji)
toLowerCase()
toUpperCase()

RAD SA
DOGAAJIMA
onBlur
onClick
onChange
onFocus
onLoad
onMouseOver
onMouseOut
onSelect
onSubmit
onUnload
onReset
onError
onAbort

Rad sa uzorcima
Karakter

Predstavlja

alfanumeriki
znak

sebe

\d

Bilo koja cifra od 0 do 9

\D

Bilo koji karakter koji nije cifra

\w

Bilo koji karakter (slova a-z, A-Z, 0-9 i _)

\W

Neki specijalni karakteri (na primer: @)

\s

Neki beli karakter (tab, nova linija, )

\S

Neki karakter koji nije beli

Bilo koji karakter (osim nove linije)

[]

Bilo koji karakter naveden izmeu []

[^]

Bilo koji karakter koji nije naveden izmeu []

[\b]

Brisanje unazad

{n,m}

Prethodni element se ponavlja najmanje n puta i


ne vie od m puta

{n,}

Prethodni element se ponavlja n ili vie puta

{n}

Prethodni element se ponavlja TANO n puta

Prethodni element se ne pojavljuje ili se pojavljuje


samo jednom. Ekvivalentno izrazu {0,1}

Prethodni element se ponavlja jednom ili vie puta.


Ekvivalentno izrazu {1,}

Prethodni element se ne pojavljuje ili se ponavlja vie


puta. Ekvivalentno izrazu {0,}

Alternative. Pojavljuje se ili samo desni ili samo levi


deo uzorka u stringu.

(...)

Grupisanje simbola u jedan objekat nad kojim se


mogu koristiti *, +, ?, |

Pretragu uzorka na poetku znakovnog niza

Pretragu uzorka na kraju znakovnog niza

/uzorak/i

Case-insensitive ispitivanje

/uzorak/g

Globalno izvravanje

You might also like