Skip to content

Instantly share code, notes, and snippets.

@takahiro-itazuri
Last active January 16, 2018 10:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takahiro-itazuri/e922355305303479d75a7b1fcc19e9c4 to your computer and use it in GitHub Desktop.
Save takahiro-itazuri/e922355305303479d75a7b1fcc19e9c4 to your computer and use it in GitHub Desktop.
Chrome上でAjaxを使ってローカルファイルにアクセスする方法 ref: https://qiita.com/takahiro_itazuri/items/c2807b7a7d9d9537cffb
$(function() {
$.get("file.html", function(data) {
// 成功時の処理
})
})
$(function() {
$.get("file.html", function(data) {
// 成功時の処理
})
})
cd C:\Program Files (x86)\Google\Chrome\Application
chrome.exe --allow-file-access-from-files
cd C:\Program Files (x86)\Google\Chrome\Application
chrome.exe --allow-file-access-from-files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment