回答編集履歴

1

検証コード追記

2016/01/05 09:32

投稿

think49
think49

スコア18166

test CHANGED
@@ -8,4 +8,48 @@
8
8
 
9
9
 
10
10
 
11
+ ---
12
+
13
+ **(2016/01/05 18:30追記)**
14
+
15
+
16
+
17
+ 私の環境では下記コードで問題なく機能しました。
18
+
19
+ ローカルテストで `file://` スキームを使っているとか、`fail()` でエラー内容を出力して検証してみてはいかがでしょうか。
20
+
21
+
22
+
23
+ ```JavaScript
24
+
25
+ 'use strict';
26
+
27
+ jQuery(function (jQuery) {
28
+
29
+ jQuery.ajax({
30
+
31
+ url:'array.jsonq',
32
+
33
+ dataType:'json',
34
+
35
+ }).done(function(object){
36
+
37
+ console.log('done');
38
+
39
+ console.log(object);
40
+
41
+ }).fail(function (error) {
42
+
43
+ console.log(error.status + ' ' + error.statusText);
44
+
45
+ console.log(error);
46
+
47
+ });
48
+
49
+ });
50
+
51
+ ```
52
+
53
+
54
+
11
- # Re: Satochan24 さん
55
+ Re: Satochan24 さん