質問編集履歴

1

エディタの修正

2015/10/08 12:32

投稿

DaikiKojima
DaikiKojima

スコア11

test CHANGED
File without changes
test CHANGED
@@ -16,55 +16,55 @@
16
16
 
17
17
 
18
18
 
19
- // $("#translate").on("click",function(){
19
+ $("#translate").on("click",function(){
20
20
 
21
- // $.ajax({
21
+ $.ajax({
22
22
 
23
- // type: "GET",
23
+ type: "GET",
24
24
 
25
- // url: "http://api.microsofttranslator.com/V2/Ajax.svc/Translate",
25
+ url: "http://api.microsofttranslator.com/V2/Ajax.svc/Translate",
26
26
 
27
- // dataType: "jsonp",
27
+ dataType: "jsonp",
28
28
 
29
- // data: {
29
+ data: {
30
30
 
31
- // client_id: 'id',
31
+ client_id: 'dktky18',
32
32
 
33
- // client_secret:'顧客の秘密',
33
+ client_secret:'axe19HoGCPTtdu1R3ycOoiVU7ajQDZXLeR8W1iV2jbQ=',
34
34
 
35
- // scope: 'http://api.microsofttranslator.com',
35
+ scope: 'http://api.microsofttranslator.com',
36
36
 
37
- // grant_type: 'client_credentials',
37
+ grant_type: 'client_credentials',
38
38
 
39
- // text: "Hello, world!",
39
+ text: "Hello, world!",
40
40
 
41
- // from: "en",
41
+ from: "en",
42
42
 
43
- // to: "ja"
43
+ to: "ja"
44
44
 
45
- // },
45
+ },
46
46
 
47
- // jsonp: "oncomplete",
47
+ jsonp: "oncomplete",
48
48
 
49
- // //success: function (data, dataType) {
49
+ //success: function (data, dataType) {
50
50
 
51
- // // 結果を表示
51
+ // 結果を表示
52
52
 
53
- // success: function(response){
53
+ success: function(response){
54
54
 
55
- // alert(response.status);
55
+ alert(response.status);
56
56
 
57
- // },
57
+ },
58
58
 
59
- // error: function(response){
59
+ error: function(response){
60
60
 
61
- // alert(response.responseText);
61
+ alert(response.responseText);
62
62
 
63
- // }
63
+ }
64
64
 
65
- // //}
65
+ //}
66
66
 
67
- // });
67
+ });
68
68
 
69
69
 
70
70