日期:2014-05-16  浏览次数:20707 次

extjs中textfield输入限制问题
输入项校验
以“N”开头,或I开头且以“S“或”S+1位数字”结尾
求大神不吝赐教
------解决方案--------------------
{
            fieldLabel: 'Send To',
            name: 'to',
            allowBlank: false,
            regex: /^(N
------解决方案--------------------
I).*S(\d)?$/,
            regexText: '以“N”开头,或I开头且以“S“或”S+1位数字”',
            anchor:'100%'  // anchor width by percentage
        }