1
这是ajax发布请求的示例。当它放置在wordpress活动主题目录之外时它工作。然而,当它在那里,并且norefresh.php也被上传时,无论norefresh.php使用什么确切的补丁(site/themefolder/norefresh.php或服务器补丁或本地补丁norefresh.php或/ norefresh),它都不起作用。 PHP)。根本不起作用。Ajax发布请求在wp主题目录中不起作用
有什么关于WordPress的,可以防止执行,我该怎么办?
$.ajax({
type: "POST",
url: "norefresh.php",
data: reqdata,
cache: false,
success: function(html) {
//document.getElementById('myTextarea').value = html;
alert(html);
}
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>