Kan brukes til å spørre for WoW data fra innsiden web apps via Javascript-samtaler.
Eksempel bruk:
& # X3c;! DOCTYPE html & # x3e;
& # X3c; head & # x3e;
& nbsp; & nbsp; & nbsp; & # X3c; script src = "/ js / jswow.js" & # x3e; & # X3c; / script & # x3e;
& # X3c; / head & # x3e;
& # X3c; body & # x3e;
& nbsp; & nbsp; & nbsp; & # X3c; script & # x3e;
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; Var jw = new JSWoW ();
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; jw.region = 'eu';
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; jw.realms ('Chants & eacute; ternels', funksjon (realms) {
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; alert (realms [0] .name);
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; });
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; jw.realms ('БорейCкaя тундрa', 'Aggramar', funksjon (realms) {
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; alert (realms [0] .status && rikene [1] .status 'Begge up': 'En eller begge ned'?);
& nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; & nbsp; });
& nbsp; & nbsp; & nbsp; & # X3c; / script & # x3e;
& # X3c; / body & # x3e;
Krav
- aktivere Javascript på klientsiden
Kommentarer ikke funnet