2013-01-12 102 views

回答

4

使用Ajax很容易。請嘗試以下代碼:

$.ajax({ 
    url:"myFile.txt", // relative path to www folder 
    type:"get", 
    contentType:"application/text", 
    success: function(text){ 
     //todo: 
    } 
});