使用下面的代码时,我需要调用 Transmit_SOAP() 函数。但它无法调用。有什么问题吗?
function sample()
{
var xmlSoapTemplate;
xmlSoapTemplate = new XMLHttpRequest();
xmlSoapTemplate.onreadystatechange = function () {
if (xmlSoapTemplate.readyState == 4) Transmit_SOAP()
};
}
function Transmit_SOAP()
{
alert("Function calls");
}