jQuery: read text file from file system

前端 未结 10 2490
再見小時候
再見小時候 2020-11-30 10:09

I am trying to read a text file using jquery, like this:

// LOAD file and split line by line and append divs
$.get(\'myFile.txt\', function(data) {    
    v         


        
10条回答
  •  渐次进展
    2020-11-30 10:49

    Something like this is what I use all the time. No need for any base64 decoding.

    
    
    
    
    
    
    
    
    

提交回复
热议问题