我正试图编写一个函数,点击后会调用getproduct.php?id=xxx
。我可以看到innerHTML
部分,但我怎样才能调用实际完成该工作的php
页面?如何使用jQuery和AJAX将PHP页面加载到div中?
var id = id;
document.getElementById("digital_download").innerHTML =
"Downloading...Please be patient. The process can take a few minutes.";
url = getproduct.php?id=id;
你使用任何的jQuery或其他JS框架? –
我正在使用jquery – Refiking
呃......希望我在回复之前写下你的回复。下一次,您应该在原始帖子中添加该类型的信息。 –