I added $("#id").html("" result "");
Just add span! ! !
Record it here.
General solution: Pay attention to whether the name of result is repeated with some built-in ones. It is recommended to use content, etc.
When I write this into a function today, I also need to pay attention to:
function doad(datastr,id){ //getid(id).innerHTML = datastr; $("#"+id).html(datastr); }
When calling:
<div id="logo_m"></div> <script> var lom_m="脚本之家 www.jb51.net"; doad(logo_m,'logo_m'); </script>