Do
This commit is contained in:
parent
41e92f542d
commit
655633a57e
10 changed files with 125 additions and 49 deletions
27
webs/index.htm
Normal file
27
webs/index.htm
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Page Title</title>
|
||||
</head>
|
||||
<script>
|
||||
function readFile(filePath) {
|
||||
var result = null;
|
||||
var xmlhttp = new XMLHttpRequest();
|
||||
xmlhttp.open("GET", filePath, false);
|
||||
xmlhttp.send();
|
||||
if (xmlhttp.status==200) {
|
||||
result = xmlhttp.responseText;
|
||||
}
|
||||
xmlhttp.abort();
|
||||
return result;
|
||||
}
|
||||
|
||||
console.log("Test readFile " + readFile("?test-hurr"))
|
||||
</script>
|
||||
<body>
|
||||
|
||||
<h1>This is a Heading</h1>
|
||||
<p>This is a paragraph.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue