中的第二个“senzajs”<map>
没有被替换,但我希望它......
Javascript
<script type="text/javascript">
$("document").ready(function(){
$('body').html($('body').html().replace('senzajs', 'js'));
});
</script>
HTML
<div class="objectdiv">
<a href="freegames/Classic/svgsenzajs/start.php/">
<object class="svg" type="image/svg+xml" data="svg/question0optimize1.svg" >
<img src="png/question0optimize1.png" type="image/png" usemap="#mapping"/>
</object>
</a>
<map name="mapping">
<area shape="rect" coords="0,0,1000,1000"
href="freegames/Classic/pngsenzajs/start.php/" />
</map>
</div>
为什么会这样?