![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JavaScript
sunboard
这个作者很懒,什么都没留下…
展开
-
utf-8编码引起js输出中文乱码的解决办法
如果web application的编码规则是utf-8,如网页头中的:那么js文件中如果有中文输出就会出现乱码,解决此个问题可在引用javascript输出的地方加上charset="gb2312" 或 charset="big5"(假设输出的是Big5繁体字)。例:PS:另一种解决方法是把js文件保存为utf-8编码。 如果web application的编码规则是utf-8,如网页头中的:那原创 2008-12-27 11:52:00 · 212 阅读 · 0 评论 -
取值跳转页面JavaScript代码
function changeJSP(type){ if(type==1){ document.getElementById("show").location.href="add.jsp"; } if(type==2){ document.getElementById("show").location.href="amend.jsp"; } if(type=原创 2008-12-31 21:24:00 · 92 阅读 · 0 评论