jQuery.NameSpace
- 授权协议: 未知
- 开发语言:
- 操作系统: 未知
- 软件首页: http://plugins.jquery.com/project/jQueryNameSpace
软件介绍
Easy way to create a namespace structure
This plugin works for you to provide for your code a structure on namespaces.
The Example:
<script language="JavaScript">
<!--
$.namespace("validate", {
isFullName: function(elems){
return elems.val().indexOf(" ") > -1;
},
isNick: function(elems){
return elems.val().indexOf(" ") == -1;
},
isEmail: function(elems){
return elems.val().match(/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/);// erro;
}
});
checkFullName = function(){
($("#myFullName").validate.isFullName())? alert('Valid'): alert('invalid');
}Plugin page:
http://gsaraiva.projects.pro.br/?page_id=52
My site:
http://gsaraiva.projects.pro.br/
Charlotte's Web
E. B. White / Scholastic / 2004 / USD 0.01
This is the tale of how a little girl named Ferm, with the help of a friendly spider, saved her pig, Wilbur, from the usual fate of nice fat little pigs.一起来看看 《Charlotte's Web》 这本书的介绍吧!
