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

Charlotte's Web

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》 这本书的介绍吧!

正则表达式在线测试
正则表达式在线测试

正则表达式在线测试

RGB HSV 转换
RGB HSV 转换

RGB HSV 互转工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具