• Jetzt anmelden. Es dauert nur 2 Minuten und ist kostenlos!

Expecting Statement but saw block

Status
Für weitere Antworten geschlossen.

seblon

Mitglied
Code:
...
on (release) {
    if (clickTAG.substr(0,5) == "http:") {
        getURL(clickTAG);
    }
}
...

Problem at line 10 character 13: Missing semicolon.
on (release) {
Problem at line 10 character 14: Expected to see a statement and instead saw a block.
on (release) {

Ich hoffe jemand weiss was da falsch ist.
Danke schonmal im Vorraus.
 
Werbung:
fehlt vor dem on nicht ein function?
Code:
function on(release) {
  alert("do something")
}
 
Status
Für weitere Antworten geschlossen.
Zurück
Oben