码迷,mamicode.com
首页 > Web开发 > 详细

Extjs初学者(二)

时间:2014-10-14 12:48:48      阅读:194      评论:0      收藏:0      [点我收藏+]

标签:style   blog   http   color   io   for   sp   div   2014   

表单vtype验证

 1 <script>
 2         Ext.onReady(function(){
 3             Ext.QuickTips.init();
 4             Ext.create(Ext.form.Panel,{
 5                 title:示例,
 6                 frame:true,
 7                 width:300,
 8                 renderTo:Ext.getBody(),
 9                 defaultType:textfield,
10                 items:[
11                 {
12                     fieldLabel:邮件,
13                     vtype:email
14                 },{
15                     fieldLabel:网址,
16                     vtype:url
17                 },{
18                     fieldLabel:字母,
19                     vtype:alpha
20                 },{
21                     fieldLabel:字母和数字,
22                     vtype:alphanum
23                 }
24                 ]
25             });
26     });
27     </script>

bubuko.com,布布扣

Extjs初学者(二)

标签:style   blog   http   color   io   for   sp   div   2014   

原文地址:http://www.cnblogs.com/yll-sww/p/4024097.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!