Histórico da Página
...
Dica |
---|
Para formar os dados no formato legível, poderá formatar de duas formas:
|
Exemplo de uma 'aplicação
...
externa'
<?xml version="1.0" encoding="UTF-8"?>
<HTML>
<title></title>
<head></head>
<body>
<h1>GetSession</h1>
<label id="lb"></label>
<script lang="javascript">
var xhr = new XMLHttpRequest();
xhr.open('GET', 'http://DOMININIO/EducaMobile/EduSessao/GetSession');
xhr.responseType = 'json';
xhr.onload = function() {
if (xhr.status === 200) {
var jsonString = JSON.stringify(xhr.response);
document.getElementById("lb").innerHTML = jsonString;
}
};
xhr.send();
</script>
</body>
</HTML>
...
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas