Ext.form.VTypes小数

       Ext.apply(Ext.form.VTypes,{
            money:function(val,field){                    
                   var t=/^[0-9]+?[\.]{0,1}[0-9]*$/.test(val);
                   if (t){
                        if (val.substr(val.length-1,1)=="."){
                            return false;
                        }else{
                            return true;
                        }
                   }
                }
                //www.dc9.cn
            });

2 comments

  1. Gabriel Souliere 说道:

    I simply want to say I am just very new to blogs and really savored you’re blog site. Almost certainly I’m want to bookmark your blog post . You surely come with superb articles. Thanks a bunch for revealing your web site.

  2. Anderson Breiner 说道:

    Hey there. I discovered your website via Google even as looking for a comparable subject, your website got here up. It appears to be great. I have bookmarked it in my google bookmarks to come back later.

发表评论

电子邮件地址不会被公开。