Home >Web Front-end >JS Tutorial >jquery's $('#id').html() has no content solution_jquery
I added $("#id").html("45a2772a6b6107b401db3c9b82c049c2" result "54bdf357c58b8a65c66d7c19c8e4d114");
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>