Loading local JSON file

前端 未结 23 1657
悲哀的现实
悲哀的现实 2020-11-22 01:28

I\'m trying to load a local JSON file but it won\'t work. Here is my JavaScript code (using jQuery):

var json = $.getJSON("test.json");
var data = e         


        
23条回答
  •  臣服心动
    2020-11-22 01:41

    What worked for me is the following:

    Input:

    http://ip_address//some_folder_name//render_output.html?relative/path/to/json/fie.json
    

    Javascript Code:

    
    
    
    
    
    
    
    
    
    
    

提交回复
热议问题