随笔分类 -  javascript & html

摘要:将下面的代码加在<body></body>之间<input type="button" value="隐藏" onclick="csan(did,'none')"><input type="button" value="显示" onclick="csan(did,'')"><input id="did"><br><input type=" 阅读全文

posted @ 2012-07-09 17:35 太极柔 阅读(4880) 评论(0) 推荐(0)

摘要:PHP页面的编码方式是utf-8,用 echo "<script type='text/javascript'>alert('已全部清除!');script>";输出时弹出乱码窗口,原因:因为有alert()输出中文到浏览器,所以一定要在网页中指定编码方式为UTF-8,即<metahttp-equiv="Content-Type"content="text/html;charset=utf-8"/>该行不能缺少!注:如果PHP页面编码方式是gb2312,则不需要添加行< 阅读全文

posted @ 2011-12-03 16:28 太极柔 阅读(7380) 评论(0) 推荐(0)

导航