如何在任何地方使用$ .ajax()

My file is in D drive

D:/item/1.js

I do not use xampp or wamp

It does not work

function request($i){
$url = "item/"+$i+".js";
$.ajax({
crossDomain: true,
  cache: false,
  type: 'post', 
  url: $url,
  dataType: 'json',
  success: function(datax){
   //return data;
   data = datax;
  },
  error: function(){
   //return error();
   data = error();
  }
});

}

I want to work from anywhere

For example :

file:///c:/document/item/1.js , flash memory , and ....

I can not use .load() because I get to Json

Thanks