1.php内容
<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
<meta charset="utf-8">
</head>
<body>
<div>
<div>
<button >Search</button>
</div>
<div id="ok">
</div>
</div>
</body>
<script type="text/javascript">
$(document).ready(function(){
$("button").click(function(){
$.post("2.php",{
name:"ceshineirong",
url:"www.test.com"
},
function(data,status){
document.getElementById("ok").innerHTML=data;
});
});
});
</script>
</html>
2.php内容, 为什么table无法显示?
<?php
print_r($_POST);
print <<<EOT
<style type="text/css">
table{
border:1px;
}
</style>
<button>adfasdfasdf</button>
<table>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
</tr>
</table>
EOT;
?>