1. with (new Date()){
setDate(getDate()+days);
days=toUTCString();
document.cookie = "{0}={1};expires={2};path={3}".format(name, value, days, path);
} 错误:expected an identifier and instead saw "with"
2.window.top.location.href = window.close();
错误:href delaration is not found
3.function Node(id, pid, name, url, title, target, icon, iconOpen, open) { this.id = id;
...
错误:expected an assignment or function call and instead saw an expression
4. document.datafrm.dataInfo.value = szSqlInfoList ;
document.datafrm.fileInfo.value = szFjList ;
document.datafrm.action = "index_admin_ypkInfo.jsp" ;
document.datafrm.submit();
错误:datafrm declaration is not found
5.if(location.search.indexOf('mainMenuItemToSlide')>=0){
var items = location.search.split('&');
for(var no=0;no<items.length;no++){
if(items[no].indexOf('mainMenuItemToSlide')>=0){
var values = items[no].split('=');
showSubMenu(false,document.getElementById('mainMenuItem' + values[1]));
initMenuIdToExpand = false;
}
}
...
错误:declaration of variable location was not found
还有一些错就不贴了
请求帮助
以前的一些错,大概就是一些语法错误,或者有些没定义的加上var就行,以上的错不知该如何改,请求高手解答
setDate(getDate()+days);
days=toUTCString();
document.cookie = "{0}={1};expires={2};path={3}".format(name, value, days, path);
} 错误:expected an identifier and instead saw "with"
2.window.top.location.href = window.close();
错误:href delaration is not found
3.function Node(id, pid, name, url, title, target, icon, iconOpen, open) { this.id = id;
...
错误:expected an assignment or function call and instead saw an expression
4. document.datafrm.dataInfo.value = szSqlInfoList ;
document.datafrm.fileInfo.value = szFjList ;
document.datafrm.action = "index_admin_ypkInfo.jsp" ;
document.datafrm.submit();
错误:datafrm declaration is not found
5.if(location.search.indexOf('mainMenuItemToSlide')>=0){
var items = location.search.split('&');
for(var no=0;no<items.length;no++){
if(items[no].indexOf('mainMenuItemToSlide')>=0){
var values = items[no].split('=');
showSubMenu(false,document.getElementById('mainMenuItem' + values[1]));
initMenuIdToExpand = false;
}
}
...
错误:declaration of variable location was not found
还有一些错就不贴了
请求帮助
以前的一些错,大概就是一些语法错误,或者有些没定义的加上var就行,以上的错不知该如何改,请求高手解答
解决方案 »
- web项目打成war时报错。。。急!急!
- 老是被捕捉到错误catch(SQLException e)
- 在使用freemarker生成了html静态网页后不在访问,报404错误
- 急求解决通过数据源访问数据库问题!!!在线等!!!
- 有人用过JRockit吗?比用SUN的JVM能快多少?
- 在线两小时等待,pop3收取邮件,并设置服务端收取邮件未以读如何设置呢?分数不够可再加!
- tomcat报错 Syntax error on token "import", Identifier expected after this token
- 一个jsp和flash的问题!100分!近来就有!
- 我在表单里面用了下拉列表,我怎么在处理表单的程序中取得下拉列表选择的内容
- 如何实现页面设置秒数后自动跳转?
- hibernate统计总记录数时为么老报错?请大家帮忙。郁闷
- 关于字符窜问题。 急急急急~~~~
2。href 后面因该是一个url呀,你写成了事件方法了
3。你函数的参数有问题,或者不能写this.id = id; 吧。
4。datafrm 没有定义。
5。location没有定义。