我的ajax调用在本地主机上工作,但当我在域中上传文件时就不起作用了。使用ajax,我在一个名为'images‘的文件夹中搜索所有的jpg/png文件,并在我的网页上显示它们。密码是-
<script>
//Use ajax to load all images (jpe?g|png|gif) from a folder to a page called Gallery
//images folder should be in the same folder as the file
var folder = "../images/";