1, Ajax access to the current directory files
The ability to use relative URLs in a Web page usually means that we can use the local file system to develop and test HTML and avoid unnecessary deployment of the Web server.
However, when using XMLHttpRequest for AJAX programming, this is usually not the case.
XMLHttpRequest is used to work with HTTP and HTTPS protocols. Theoretically, it can work with other protocols such as FTP, but some APIs such as request methods and response status codes are HTTP-specific. If you load a Web page from a local file, the script in that page will not be able to use XMLHttpRequest with a relative URL because the URLs will be relative to File://URL instead of Http://URL. The homology policy usually blocks the use of absolute http://URL. The result is that when you use XMLHttpRequest, you typically have to upload files to the Web server or run a local server in order to test them.
2, recursive function transfer value parameters
The value is not an object and cannot be used as a carrier in recursion.