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

📄 form_update.js

📁 着重用css实现页面显示功能,实现简单数据库连接,是很好的入门教程
💻 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();
    //Ext.MessageBox.alert("Warning", "This example is not done and results may vary.");
    // Change field to default to validation message "under" instead of tooltips
    Ext.form.Field.prototype.msgTarget = 'under';

    var tranny = new Ext.form.ComboBox({
		allowBlank:false,
		blankText:'请填写或选择发布版块!',
        typeAhead: true,
        triggerAction: 'all',
        transform:'Board',
        width:179,
        forceSelection:true
    });

    var LinkName = new Ext.form.TextField({
        allowBlank:false,
		blankText:'链接地址名不能为空!'
    });
    LinkName.applyTo('LinkName');

    var Url = new Ext.form.TextField({
		allowBlank:false,
		blankText:'链接地址不能为空!',
        vtype:'url'
		//
    });
    Url.applyTo('Url');

    var memo = new Ext.form.TextArea({
        width:200, grow:true
    });
    memo.applyTo('memo');

  /*  person_form.addButton('保存', function(){
		if(person_form.isValid()){
			 person_form.submit({
				      method:'POST',clientValidation:true,
				      waitMsg:'Loading....'
				    });
			//window.location.href('meetingmanage.jsp');
		}
    });

    // explicit add
    person_form.addButton('重置', function(){
			 person_form.reset();
    });*/

});

⌨️ 快捷键说明

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