$ajax
请教大牛, 如何将js中连接的php执行完后的变量$i传到A.php,让其中被注释掉的那块调用?
还有,在$ajax中success是怎么运行的,回调的是什么值?
谢谢
A.php
<br><form id="displayAAPtds" name="displayAAPtds"><br> <p><br> <label>vehicle segment:</label><br> <select id="vehiclesegment" name="vehiclesegment" required=""><br> <option value="">select a segment...</option><br> <option value="base">base</option><br> <option value="value">value</option><br> <option value="premium">premium</option><br> </select><br> </p><br> <p><br> <label>Year:</label><br> <select id="anneeAAP" name="anneeAAP" required=""><br> <option value="">Select...</option><br> <option value="2014">2014</option><br> <option value="2105">2015</option><br> <option value="2016">2016</option><br> <option value="2017">2017</option><br> <option value="2018">2018</option><br> </select><br> </p><br> </form><br><div class="fieldset" style="position: relative; width: 100%;left: 0%"><br> <fieldset><br> <legend><br> AAP Assumptions<br> </legend><br> <div id="generalDisplayAAP" class="fieldset" style="position: responsive; width: 2%;left: 0%"><br> <!---?php<br> $filename="classfiles/AAPvaleurs.txt";<br> $file_hwnd=fopen($filename,"r");<br> $content = fread($file_hwnd, filesize($filename)); <br> fclose($file_hwnd);<br> $vAAP = unserialize($content); <br> ?---><br> <fieldset><br> <p><br> <label></label><br> <label>Budget</label><br> </p><br> <p><label>Product Line:</label></p><br> <p><label>Design:</label></p><br> <p><label>Technology Engineering:</label></p><br> <p><label>Simulation:</label></p><br> <p><label>IMDS</label></p><br> <p><label>Geometry Testing</label></p><br> <br> </p><br> </fieldset><br> <!---fieldset><br> <p><br> <label></label><br> <label>Budget</label><br> <p><br> <label>Product Line:</label><br> <span id="productLineBudget" name="dproductLineBudget"> <?php echo $vAAP[$i] ?> </span><br> <br> </p><br> <p><br> <label>Design:</label><br> <span id="designBudget" name="designBudget"> <?php echo $vAAP[$i+5] ?> </span><br> <br> </p><br> <p><br> <label>Technology Engineering:</label><br> <span id="techEngineeringBudget" name="techEngineeringBudget"> <?php echo $vAAP[$i+10] ?> </span><br> <br> </p><div class="aritcle_card flexRow">
<div class="artcardd flexRow">
<a class="aritcle_card_img" href="/ai/2059" title="Transfusion AI"><img
src="https://img.php.cn/upload/ai_manual/000/000/000/175680099930252.png" alt="Transfusion AI" onerror="this.onerror='';this.src='/static/lhimages/moren/morentu.png'" ></a>
<div class="aritcle_card_info flexColumn">
<a href="/ai/2059" title="Transfusion AI">Transfusion AI</a>
<p>一站式室内设计AI解决方案</p>
</div>
<a href="/ai/2059" title="Transfusion AI" class="aritcle_card_btn flexRow flexcenter"><b></b><span>下载</span> </a>
</div>
</div><br> <p><br> <label>Simulation:</label><br> <span id="simulationBudget" name="simulationBudget"> <?php echo $vAAP[$i+15] ?> </span><br> <br> </p><br> <p><br> <label>IMDS</label><br> <span type="text" id="imdsBudget" name="imdsBudget"> <?php echo $vAAP[$i+20] ?> </span><br> <br> </p><br> <p><br> <label>Geometry Testing</label><br> <span id="geometryTestingBudget" name="geometryTestingBudget"> <?php echo $vAAP[$i+25] ?> </span><br> <br> </p><br> </fieldset---><br></div><br><div id="target" onClick="ShowBudgetFunction()" class="fieldset""><br> <fieldset><br> <p><br> <label></label><br> <label></label><br> <label>Target</label><br> </p><br> <p> <br> <label>Product Line:</label> <br> <input type="text" class="target" id="productLineTarget" name="productLineTarget" /><br> </p><br> <p><br> <label>Design:</label> <br> <input type="text" class="target" id="designTarget" name="designTarget" /><br> </p><br> <p><br> <label>Technology Engineering:</label><br> <br> <input type="text" class="target" id="techEngineeringTarget" name="techEngineeringTarget" /><br> </p><br> <p><br> <label>Simulation:</label><br> <br> <input type="text" class="target" id="simulationTarget" name="simulationTarget" /><br> </p><br> <p><br> <label>IMDS</label><br> <br> <input type="text" class="target" id="imdsTarget" name="imdsTarget" /><br> </p><br> <p><br> <label>Geometry Testing</label><br> <br> <input type="text" class="target" id="geometryTestingTarget" name="geometryTestingTarget" /><div class="clear">
</div>









