jquery.js:8630 XMLHttpRequest cannot load file:///C:/Users/Yaphets/Desktop/text/data.json?callback=jQuery214005026997282902079_1493192403330&_=1493192403331. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.
$.ajax({ type:"GET", url:"data.json", dataType:"jsonp", success:function(data){ alert(data) }, });
If you want to simulate local JSON data, you need to deploy a server, such as apache. Your ajax also involves cross-domain. It is recommended to experiment in a real environment, or do not cross-domain for the time being. Just pass json first.
dataType changed to json
You need a web server.