質問編集履歴

1

簡易でございますが、状況を追記いたしました。

2018/08/10 01:54

投稿

edfrtg_4444
edfrtg_4444

スコア6

test CHANGED
File without changes
test CHANGED
@@ -13,3 +13,63 @@
13
13
  どなたか知恵をお借りできたらと思います。
14
14
 
15
15
  宜しくお願いします。
16
+
17
+
18
+
19
+ 追記:
20
+
21
+ 簡易でございますが、下記の状況でおります。
22
+
23
+
24
+
25
+ 遷移元が下記の場合(『method="get"』)
26
+
27
+ <form name="form_serach" id="form_serach" method="get" action="http://test-hogehoge.com/item/">
28
+
29
+ <input type="hidden" name="id" value="2">
30
+
31
+ <input type="hidden" name="code" value="aa-203">
32
+
33
+ <input type="hidden" name="page" value="9">
34
+
35
+ </form>
36
+
37
+
38
+
39
+ 遷移先のjクエリー(『$(location).attr('href')』)
40
+
41
+ console.log($(location).attr('href'));
42
+
43
+
44
+
45
+ http://test-hogehoge.com/item/?id=2&code=aa-203&page=9
46
+
47
+ URL全文が取得できる(課題解決)。
48
+
49
+
50
+
51
+ 遷移元が下記の場合(『method="post"』)
52
+
53
+ <form name="form_serach" id="form_serach" method="post" action="http://test-hogehoge.com/item/">
54
+
55
+ <input type="hidden" name="id" value="2">
56
+
57
+ <input type="hidden" name="code" value="aa-203">
58
+
59
+ <input type="hidden" name="page" value="9">
60
+
61
+ </form>
62
+
63
+
64
+
65
+ 遷移先のjクエリー(『$(location).attr('href')』)
66
+
67
+ console.log($(location).attr('href'));
68
+
69
+
70
+
71
+ http://test-hogehoge.com/item/
72
+
73
+ URL全文が取得できない(課題未解決)。
74
+
75
+ method="post"でも、パラメタを含めたURL全文を取得したいと思ってます。