87,907
社区成员
发帖
与我相关
我的任务
分享
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>CrossDomain</title>
<script type="text/javascript">
var showName = function(person){
document.write(person.name);
};
var script = document.createElement("script");
script.type = "text/javascript";
script.src = "http://10.0.4.226:8080/ServerApp/dataserv.do?callback=showName";
document.getElementsByTagName('head')[0].appendChild(script);
</script>
</head>
<body>
</body>
</html>
var showName = function(person){
document.open();
document.write(person.name);
alert(person.name);
};
你看到的返回JS代码是什么?