Salta el contingut

Mapa Conceptual UT03

UT03 Model d’objectes predefinits a JavaScript

mindmap
  root((Objectes JavaScript))
    "1. Objectes Alt Nivell"
      "Objecte window"
        "Contenidor principal"
        "Accés: window, self, o ometre"
        "Gestió finestres"
          id1["open(): crea finestres"]
          id2["close(): tanca finestres"]
        "Propietats"
          "closed, document, frames"
          "history, location, navigator"
        "Mètodes"
          id3["alert(), confirm(), prompt()"]
          "focus(), blur()"
          "setInterval(), clearInterval()"

      "Objecte location"
        "Informació URL actual"
        "Propietats"
          "hash, host, hostname"
          "href, pathname, port"
          "protocol, search"
        "Mètodes"
          "assign(), reload(), replace()"

      "Objecte navigator"
        "Informació navegador"
        "Propietats"
          "appName, appVersion"
          "platform, userAgent"
          "cookieEnabled"
        "Mètodes"
          "javaEnabled()"

      "Objecte document"
        "Document carregat"
        "Col·leccions"
          "anchors[], forms[]"
          "images[], links[]"
        "Propietats"
          "cookie, domain, title, URL"
        "Mètodes"
          "getElementById()"
          "getElementsByName()"
          "getElementsByTagName()"
          "write(), writeln()"

    "2. Objectes Nadius"
      "Objecte String"
        "Cadenes de text"
        "Creació"
          "new String()"
          "Cometes simples o dobles"
          "Plantilles de cadenes"
        "Caràcters especials"
          "\\n, \\t, \\r"
          "\\', \\\", \\\\"
        "Propietat"
          "length"
        "Mètodes"
          "charAt(), charCodeAt()"
          "concat(), indexOf()"
          "replace(), search()"
          "slice(), split()"
          "toLowerCase(), toUpperCase()"

      "Objecte Math"
        "Operacions matemàtiques"
        "No té constructor"
        "Constants"
          "E, PI"
          "LN2, LN10"
          "SQRT2"
        "Mètodes"
          "abs(), ceil(), floor()"
          "round(), random()"
          "max(), min()"
          "pow(), sqrt()"
          "sin(), cos(), tan()"

      "Objecte Number"
        "Embolcall valors numèrics"
        "Doble precisió 64 bits"
        "Propietats"
          "MAX_VALUE, MIN_VALUE"
          "POSITIVE_INFINITY"
          "NEGATIVE_INFINITY"
        "Mètodes"
          "toExponential()"
          "toFixed()"
          "toPrecision()"
          "toString(): base 2, 8, 16"

      "Objecte Boolean"
        "Valors lògics true/false"
        "Propietats"
          "constructor, prototype"
        "Mètodes"
          "toString(), valueOf()"

      "Objecte Date"
        "Dates i hores"
        "Creació"
          "new Date()"
          "new Date(milisegons)"
          "new Date(cadena)"
          "new Date(any, mes, dia...)"
        "Mètodes get"
          "getDate(), getDay()"
          "getFullYear(), getMonth()"
          "getHours(), getMinutes()"
          "getTime()"
        "Mètodes set"
          "setDate(), setFullYear()"
          "setHours(), setMinutes()"