更新时间:2023-12-05 09:04:16
这个问题可以在页的路径
。
它应该是在同一水平。
如果它们不处于同一水平,然后
The problem can be the path of the page
.
It should be at the same level.
If they are not at the same level then
<script type="text/javascript">
$(document).ready(function () {
$('#div_more_pack').load('dss_more_pack.aspx');
});
</script>
更改
<script type="text/javascript">
$(document).ready(function () {
$('#div_more_pack').load('../dss_more_pack.aspx');//exact path
});
</script>
您可以编辑你接近,看看是什么错误
$(document).ready(function () {
$('#div_more_pack').load('dss_more_pack.aspx', function(response, status, xhr)
{
if (status == "error") {
var msg = "Sorry but there was an error: ";
alert(msg + xhr.status + " " + xhr.statusText);
}
);
});
$(document).ready(function () {
$('#div_more_pack').load('dss_more_pack.aspx', function(response, status, xhr)
{
alert(response);
}
);
});