使用此功能:
function start() {
MONDUX();
Biggie();
}
函数MONDUX 执行,AJAX 调用返回良好数据并正确显示。但是,Biggie() 是awal
结果:
function start() {
Biggie();
MONDUX();
}
是相反的。Biggie() 按预期工作,MONUX() 失败。
这对身体没有任何好处:
<script type="text/JavaScript">
window.onload= start();
</script>
而且,这种闪避没有帮助:
<body onload="start()">
这也被尝试过
讨厌货物~邪教编程和这里的想法用完。建议?
这些资源都是相关的 // 近乎命中 // 没有雪茄。 使用 2 个函数 JS 和 Body(Window) Onload 事件在 body onload 中加载 javascript :“function onload() {}”与“onload = function() {}”有何不同? 那个很吸引人,但对我来说很深…… 如何加载两个 javascript 文件? 嗯……很好,但是……
?? :/~
<script type="text/javascript" >
function MONDUX(){
if (window.XMLHttpRequest)
{ // code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{ // code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("WhatThexBobby").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("POST","000 8 KISS 22solo PHP.php?figure1=5&figure2=33", true);
xmlhttp.send();
alert(WhatThexBobby);
}
</script>
<script type="text/javascript" >
function Biggie(){
if (window.XMLHttpRequest)
{// code for IE7+, Firefox, Chrome, Opera, Safari
xmlhttp=new XMLHttpRequest();
}
else
{// code for IE6, IE5
xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}
xmlhttp.onreadystatechange=function()
{
if (xmlhttp.readyState==4 && xmlhttp.status==200)
{
document.getElementById("FreakinEh").innerHTML=xmlhttp.responseText;
}
}
xmlhttp.open("POST","000 8 KISS solo PHP.php?figure1=5&figure2=10", true);
xmlhttp.send();
alert(FreakinEh);
}
</script>