没法全贴,还有很多jsp+ejb的东西.
我怀疑在做if (isNumeric(b))的时候,因为isNumeric会有return,则function presubmit()也同时return了???
我怀疑在做if (isNumeric(b))的时候,因为isNumeric会有return,则function presubmit()也同时return了???
解决方案 »
- 关于下拉菜单的li遍历问题!
- 怎么避免onkeydown 和 onblur 事件的冲突?
- 报javascript错: 未指明的错误
- 求----------->>>>>>firefox自定义鼠标形状
- 取消WEB下载功能
- 一个css的问题
- 在文本输入框加了htmlarea 文本输入框却没有输入焦点
- submit时,能否新开子窗口(window.open)
- [求助]html中各种事件的资料详细介绍
- 请问用dom方法:document.createElement("table");创建一个table,怎么没有指定table的位置等信息?
- 急急, 怎樣從在一個框架里放打印按鈕,但要打出來的是另外一個框架的東西?
- 关于页面关闭的问题
var i=0;
var j=0;
while(i<=str.length-1){
str1=str.charAt(i);
if (str1=='.'){
if ((j>0)||(i==0)||(i==(str.length-1)))
return false;
j=j+1;
}
else if(isNaN(parseInt(str1))==true) return false;
i=i+1;}
return true;
}
function isinfanwei(str)
{
var newnum=www.split(".")
if(newnum[0].length>3)
{
alert("The integer part length of the number:"+str+" is more than 3!");
return false;
}
if(newnum[1].length>2)
{
alert("The decimal part length of the number:"+str+" is more than 2!");
return false;
}
return true;
}
是我自己写的也在javascript里.
{
var newnum=www.split(".")
if(newnum[0].length>3)
{
alert("The integer part length of the number:"+str+" is more than 3!");
return false;
}
if(newnum[1].length>2)
{
alert("The decimal part length of the number:"+str+" is more than 2!");
return false;
}
return true;
}
这段程序有错,不知道错在哪里?
应该是 var newnum=str.split(".")