-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
44 lines (28 loc) · 1.07 KB
/
Copy pathindex.html
File metadata and controls
44 lines (28 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>TEST js.loadfunc.com</title>
<!-- <script src="//js.letjson.com/let_json.js?3"></script> -->
<script src="let_json.js?4"></script>
<script>
// let_json('//js-example.letjson.com/letjson.json?3',function (data){
let_json('//js-example.letjson.com/letjson.json?6',function (data, url){
console.log(data, url) // list data
});
// fetch('https://js-example.letjson.com/letjson.json').then(async res => {
// res.json().then(data => {
// console.log(data) // list data
// })
// })
/*
Access to XMLHttpRequest at 'https://js-example.letjson.com/letjson.json' from origin 'http://localhost:63343' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource.
*/
</script>
</head>
<body>
<h1>TEST js.loadfunc.com</h1>
<div class="letjson">
</div>
</body>
</html>