My jquery file is in /public_html/开发者_如何学编程js/jquery.js i want to access a file outside the public_html directory.How to do it?
You can't if the folder you're trying to access isn't available to the web. JavaScript is run on the client side so it can only access what the client can (i.e. if you can't get to it through the browser, you won't be able to get to it using JavaScript/jQuery).
精彩评论