我想更改我的内部div
<div class="progress" id="divpercent">
<div class="progress-bar progress-bar-info progress-bar-striped active" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width:<?php echo $percent ?>" >
<?php echo $percent ?>
</div>
</div>
这是代码:
var percent= ariza/need2pack ;
$("#divpercent").load("percent.php", {
percent1:percent
});
这是“ percent.php”:
<?php
$percent = $_GET['percent1'];
?>
<div class="progress-bar progress-bar-info progress-bar-striped active" role="progressbar" aria-valuenow="40"
aria-valuemin="0" aria-valuemax="100" style="width:<?php echo $percent ?>" >
<?php echo $percent ?>
</div>
div不会加载到主页 我在做什么?
答案 0 :(得分:0)
发现问题 用过的GET 需要使用POST 在新的php页面上