add(server.tests.test4): 新增实验四
This commit is contained in:
19
Server/tests/test4/jsonp.html
Normal file
19
Server/tests/test4/jsonp.html
Normal file
@@ -0,0 +1,19 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Jsonp Test</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
function handleResponse(data) {
|
||||
console.log(data);
|
||||
}
|
||||
</script>
|
||||
<script src="http://localhost:3000/api/jsonp?callback=handleResponse"></script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user