⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 passwordmeter.js

📁 ExtJs框架系列之密码强度 PasswordMeter.rar
💻 JS
字号:
/*
 * Ext JS Library 1.1.1
 * Copyright(c) 2006-2007, Ext JS, LLC.
 * licensing@extjs.com
 * 
 * http://www.extjs.com/license
 */

Ext.onReady(function(){    Ext.QuickTips.init();    // turn on validation errors beside the field globally    Ext.form.Field.prototype.msgTarget = 'side';    /*     * ================  Simple form  =======================     */    var simple = new Ext.form.FormPanel({        labelWidth: 75, // label settings here cascade unless overridden        url:'save-form.php'    });    simple.add(        new Ext.form.TextField({            fieldLabel: 'First Name',            name: 'first',            width:175,            allowBlank:false        }),        new Ext.form.TextField({            fieldLabel: 'Last Name',            name: 'last',            width:175        }),        new Ext.form.TextField({            fieldLabel: 'Company',            name: 'company',            width:175        }),        new Ext.form.TextField({            fieldLabel: 'Email',            name: 'email',            vtype:'email',            width:175        }),
		new Ext.ux.PasswordMeter({
            fieldLabel: 'Password',
            name: 'password',
            width:175
        })    );    simple.addButton('Save');    simple.addButton('Cancel');    simple.render('form-ct');});

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -