首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

帮小弟我看这段程序为什么运行没效果

2012-03-31 
帮我看这段程序为什么运行没效果?htmlheadtitle mofiletotqcity /titlemetahttp-equiv Cache-C

帮我看这段程序为什么运行没效果?
<html>
<head>
<title> mofile   to   tqcity </title>
<meta   http-equiv= "Cache-Control "   content= "no-cache ">
<meta   http-equiv= "Content-Type "   content= "text/html;   charset=UTF-8 "   />
<script   type= "text/javascript "   src= "prototype.js "> </script>
</head>
<body>
<script   charset= "gb2312 ">
function   format(){
ob.InnerHtmL= "abc ";
}
</script>
</body>
<form>
<input   id= "source "   type= "text ">
<input   type= "button "   value= "转换 "   onclick= "format(); ">
<div   id= "ob ">
</div>
</form>
</html>


[解决办法]
document.getElementById( "ob ").innerHTML= '123 '
document.getElementById( "ob ").innerText= '123 '

热点排行