document.getElementById('text1').**** 语句解析!!!
需要前后文代码吗?
<!--
Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/
-->
var xmlhttp;
function hello(){
xmlhttp=ajax1();
var a=document.getElementById('a').value;
var b=document.getElementById('b').value;
var url='demo02.php?a='+a+'&b='+b;
xmlhttp.open('get',url);
xmlhttp.onreadystatechange=display;
xmlhttp.send();}
function display()
{
if(xmlhttp.readyState==4 && xmlhttp.status==200)
document.getElementById('text1').value=xmlhttp.responseText;
}
<!-- Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ --> A<input type="text" id='a'><br> B<input type="text" id='b'><br> 和是:<div id='text1'></div> <input type="button" value="点击" onclick='hello()'>
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号