http://www.caihaibo.cn/devpro/webfront/3716.html 仅做学习参考,注意版权问题
面是移除腾讯地图LOGO标记的方法:
1
2
3
4
5
6
7
8
9
10
11
|
$
(
function
(
)
{
$
(
"#mapcon"
)
.
bind
(
"DOMNodeInserted"
,
function
(
e
)
{
var
tempCount
=
0
;
$
(
"#mapcon .smnoprint"
)
.
siblings
(
)
.
each
(
function
(
)
{
tempCount
++
;
if
(
tempCount
==
2
||
tempCount
==
3
)
{
$
(
this
)
.
remove
(
)
;
}
}
)
;
}
)
;
}
)
;
|
(一开始我考虑是隐藏,最后还是直接 remove 掉比较好,干坏事要彻底,哈哈)