提交时显示到浏览器时设置字符集!
request.setCharacterEncoding("字符集")
;
互相转码:
xm=URLEncoder.encode(xm, "utf-8");
xm=URLDecoder.decode(xm, "iso-8859-1");
转字符
String yxdm=new String(request.getParameter("yxdm").getBytes("ISO-8859-1"),"gbk");
按钮是图片的
<input type="image" src="图片路径"/>
js 设置span内容
document.getElementById("tipccompany").innerHTML="请输入您的公司正确名称";
打开页面
window.open ("http://www.baidu.com")
模仿键盘。(发送快捷键)
<script>
function hello(){
var WshShell = new ActiveXObject("WScript.Shell");// 客户端 浏览器F11操作
WshShell.SendKeys("%{F4}");
}
</script>
<body>
<form>
<input type="button" value="asdf" onclick="hello()">
</form>
sdfasfasfas
</body>