实例带有必填字段的表单: Name: 定义和用法required
属性规定必需在提交之前填写输入字段。如果使用该属性,则字段是必填(或必选)的。注释:required 属性适用于以下 类型:text, search, url,
telephone, email, password, date...
分类:
Web程序 时间:
2014-05-09 15:49:30
阅读次数:
340
本实例其实也比较简单,自己定义一个PullRefreshFn插件继承Ext.plugin.PullRefresh。
主要给其添加了refreshFn下拉监听事件。listpaging插件未做任何修改。再将这两个插件添加到 list中。
本例未采用MVC模式。
app.js代码如下:
Ext.require(['Ext.form.Panel',
'Ext.data....
分类:
其他好文 时间:
2014-05-09 00:32:00
阅读次数:
490
环境准备:eclipse(Helios)3.6maven3.0.4maven3 安装:安装
Maven 之前要求先确定你的 JDK 已经安装配置完成。Maven是 Apache 下的一个项目,目前最新版本是 3.0.4,我用的也是这个。首先去官网下载
Maven:http://www.apache....
分类:
系统相关 时间:
2014-05-08 19:29:58
阅读次数:
486
Sencha removed the refreshFn from the pullrefresh plugin in ST 2.2. Here is an user extension with gives the old
functionality back to you.
/**
* This user extension gives st 2.3.0 Pullrefresh the...
分类:
其他好文 时间:
2014-05-08 16:15:05
阅读次数:
390
js_csscalendar/calendar-win2k-1.csscan_load_calendar_js-->
jscalendar/calendar.jscan_load_calendar_js-->
jscalendar/lang/calendar-en.jscan_load_calend...
分类:
其他好文 时间:
2014-05-08 13:26:29
阅读次数:
258
jquery-validation使用一、用前必备官方网站:http://bassistance.de/jquery-plugins/jquery-plugin-validation/API:http://jquery.bassistance.de/api-browser/plugins.html当...
分类:
Web程序 时间:
2014-05-08 12:55:18
阅读次数:
537
邮箱验证:$(function () {
$("#txt_Email").blur(function () { var email =
/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-...
分类:
Web程序 时间:
2014-05-08 12:45:49
阅读次数:
395
1、yii框架中验证的类文件:上面红线内是验证的具体的类文件,下面的这个文件制定了类的别名。2、验证邮箱的时候默认不能为空,除了可以在模型里面设置为required外,还可以在模型的rule里面,在对应的email类里面可以看到这个allowEmpty参数。array(‘kemail‘,‘email‘,‘allowEm..
分类:
其他好文 时间:
2014-05-08 02:37:35
阅读次数:
1080
很早写的,最近别人问过一次,贴出来吧。#!/bin/bash
#
source/etc/profile&>/dev/null
basedir=$(cd`dirname$0`;pwd)
nowmonth=`date+%m`
nowday=`date+%d`
email="$basedir/email/sendemail.sh"
functionGaiMiMa(){
user="$1"
passwd=$(/usr/bin/mkpasswd-l20-d5-c2-C..
分类:
其他好文 时间:
2014-05-07 22:26:08
阅读次数:
951