回答編集履歴
1
修正
test
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
test3という変数で受け取っているのにtest.lengthになっていますね。
|
2
|
+
|
3
|
+
|
2
4
|
|
3
5
|
|
4
6
|
|
@@ -8,4 +10,16 @@
|
|
8
10
|
|
9
11
|
|
10
12
|
|
13
|
+
`marker.bindPopup("<a href='#'><script>document.write(com); </script></a>");`
|
14
|
+
|
15
|
+
markerよくわかってないですがdocument.write()じゃないとダメなんですか?普通に文字列出せそうに思います。
|
16
|
+
|
17
|
+
`marker.bindPopup("<a href='#'>"+com+"</a>");`
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
|
24
|
+
|
11
25
|
ひとまず$row['comment']を保管するときに[HTMLエスケープ](http://php.net/manual/ja/function.htmlspecialchars.php)は入れておいたほうが良いですね。
|