ajax不能获取txt的中文 - Java / Web 开发
换成字母就可以。ajax实现菜单效果
<head><meta http-equiv="Content-Type" content="text/html; charset=gb2312"></head>
<style type="text/css">
.menutop
{
color:#ccccff;
background-color:#0066ff;
text-decoration:underline;
cursor:hand;
border-right:#009999 thick double;
border-top:#009999 thick double;
border-left:#009999 thick double;
border-buttom:#009999 thick double;
}
.menulist{
color:#ff6600;
background-color:#33ccff;
display:none;
}
</style>
<script type="text/javascript">
function listmenu()
{
//judge if the menu is opened
var menudom=document.getElementById("menu");
//if unopened,get the data from server,else,hided the data
if(menudom.style.display=="none"||menudom.style.display=="")
{
//get the method of data from server
getData();
menudom.style.display="list-item";
}
else
{
menudom.style.display="none";
}
}
var xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
function getData()
{
//the method about when the state is changed
xmlhttp.
相关问答:
<script language="javascript">
var XMLHttpReq;
var cont=true;
//创建XMLHttpRequest对象
function createXMLHttpRequest ......
我JSP的页面是:
<%@ page language="java" contentType="text/html; charset=gb2312"
%>
<script>
function Save(){
xmlHttp=GetXmlHttpObject()
if(xmlHttp==nul ......
我在一个html中写如下代码:
JScript code:
<html>
<head>
<script type="text/javascript" charset="utf-8"
src="script/jquery-1.3.2.min ......
最近一个项目中遇到一个问题:在原有的一套系统中(php开发)添加一些小功能(jsp开发),原来用户系统都是php开发的,我如何在jsp开发的功能中做到用户信息session同步呢? 有人是否有做过类以项目,想听听大家的看法
......