jQuery.NameSpace

码农软件 · 软件分类 · 其他jQuery插件 · 2020-01-12 21:13:54

软件介绍

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/

本文地址:https://codercto.com/soft/d/23249.html

Hibernate

Hibernate

James Elliott / O'Reilly Media, Inc. / 2004-05-10 / USD 24.95

Do you enjoy writing software, except for the database code? Hibernate:A Developer's Notebook is for you. Database experts may enjoy fiddling with SQL, but you don't have to--the rest of the appl......一起来看看 《Hibernate》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

html转js在线工具
html转js在线工具

html转js在线工具