質問編集履歴
3
Javascriptの一部コードをコピペミスしておりましたので修正しました。
test
CHANGED
File without changes
|
test
CHANGED
@@ -16,25 +16,23 @@
|
|
16
16
|
|
17
17
|
|
18
18
|
|
19
|
-
test.domain.com/index.php?123&s=start&e=end
|
19
|
+
test.domain.com/index.php?123%20%27+%20%27&%27%20+%20%27s=%27%20+%20start%20+%20%27&e=%27%20+%20end
|
20
20
|
|
21
21
|
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
```html
|
26
|
+
|
27
|
+
<input type="text" id="daterange" value="">
|
28
|
+
|
29
|
+
```
|
22
30
|
|
23
31
|
|
24
32
|
|
25
33
|
```javascript
|
26
34
|
|
27
35
|
|
28
|
-
|
29
|
-
<input type="text" id="daterange" value="">
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
<script type="text/javascript">
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
//daterangepicker
|
38
36
|
|
39
37
|
$(document).ready(function() {
|
40
38
|
|
@@ -56,7 +54,7 @@
|
|
56
54
|
|
57
55
|
'先月': [moment().subtract('month', 1).startOf('month'), moment().subtract('month', 1).endOf('month')]
|
58
56
|
|
59
|
-
|
57
|
+
},
|
60
58
|
|
61
59
|
opens: 'left',
|
62
60
|
|
@@ -72,6 +70,8 @@
|
|
72
70
|
|
73
71
|
weekLabel: 'W',
|
74
72
|
|
73
|
+
customRangeLabel: '自分で指定',
|
74
|
+
|
75
75
|
daysOfWeek: moment.weekdaysMin(),
|
76
76
|
|
77
77
|
monthNames: moment.monthsShort(),
|
@@ -80,27 +80,23 @@
|
|
80
80
|
|
81
81
|
},
|
82
82
|
|
83
|
-
|
84
|
-
|
85
|
-
},
|
86
|
-
|
87
|
-
function sumData(start, end, label) {
|
83
|
+
}, function sumData(start, end, label) {
|
88
84
|
|
89
85
|
$.getJSON(
|
90
86
|
|
91
|
-
"//test.domain.com/index.php
|
87
|
+
"//test.domain.com/index.php?123 '+ '&' + 's=' + start + '&e=' + end"
|
92
88
|
|
93
|
-
|
89
|
+
);
|
94
90
|
|
95
|
-
|
96
|
-
|
97
|
-
);
|
98
|
-
|
99
|
-
|
91
|
+
});
|
100
92
|
|
101
93
|
|
102
94
|
|
103
95
|
});
|
96
|
+
|
97
|
+
|
98
|
+
|
99
|
+
|
104
100
|
|
105
101
|
|
106
102
|
|
2
本文のうまくいかない点について修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -9,6 +9,14 @@
|
|
9
9
|
|
10
10
|
|
11
11
|
test.domain.com/index.php?123&s=開始日&e=終了日
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
以下のコードにてPickerで日付を選択後、Ajaxリクエスト自体はエラー無く送信されるのですが、送信先のURLが以下の様に指定した日付が入らず、文字列がそのままリクエストURLとなってしまい困っております。
|
16
|
+
|
17
|
+
|
18
|
+
|
19
|
+
test.domain.com/index.php?123&s=start&e=end
|
12
20
|
|
13
21
|
|
14
22
|
|
1
current DATEの部分に誤記があったため修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -32,9 +32,9 @@
|
|
32
32
|
|
33
33
|
$('#daterange').daterangepicker({
|
34
34
|
|
35
|
-
startDate: '
|
35
|
+
startDate: '2017/01/01',
|
36
36
|
|
37
|
-
endDate: '
|
37
|
+
endDate: '2017/01/01',
|
38
38
|
|
39
39
|
format:'YYYY/MM/DD',
|
40
40
|
|