Class Index | File Index

Classes


Class $we.string

we string方法
Defined in: string.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
<static>  
$we.string.addStrNum(el, num)
增加对象中的数字
<static>  
$we.string.getHash()
获取hash
<static>  
$we.string.getInt(str)
获取字符串当中的数字
<static>  
$we.string.getQueryByIndex(index)
根据QueryString参数索引获取值
<static>  
$we.string.getQueryByName(name)
根据QueryString参数名称获取值
<static>  
$we.string.getQueryString()
获取QueryString的数组
<static>  
$we.string.maskString(str, symbol)
字符串掩码
<static>  
$we.string.replaceTmpl(str, conf)
替换模板,$str$
<static>  
$we.string.setHash(name)
设置hash
<static>  
$we.string.toString(obj)
To String
<static>  
$we.string.validIdCard(cardNumber)
验证省份证号码是否有效
Class Detail
$we.string()
Method Detail
<static> $we.string.addStrNum(el, num)
增加对象中的数字
Parameters:
{dom} el
element
{integer} num
增加的数值

<static> {string} $we.string.getHash()
获取hash
Returns:
{string} 当前hash

<static> {integer} $we.string.getInt(str)
获取字符串当中的数字
Parameters:
{string} str
字符串
Returns:
{integer} 数字

<static> {string} $we.string.getQueryByIndex(index)
根据QueryString参数索引获取值
Parameters:
{number} index
参数索引
Returns:
{string} 参数的值

<static> {string} $we.string.getQueryByName(name)
根据QueryString参数名称获取值
Parameters:
{string} name
需要获取的参数
Returns:
{string} 参数的值

<static> {Object} $we.string.getQueryString()
获取QueryString的数组
Returns:
{Object} 返回值

<static> {string} $we.string.maskString(str, symbol)
字符串掩码
Parameters:
{string} str
字符串
{string} symbol
掩码,默认是 *
Returns:
{string} 字符串

<static> {string} $we.string.replaceTmpl(str, conf)
替换模板,$str$
Parameters:
{string} str
模板字符串
{object} conf
模板替换配置
Returns:
{string} 字符串

<static> $we.string.setHash(name)
设置hash
Parameters:
{string} name
hash的名字

<static> $we.string.toString(obj)
To String
Parameters:
obj

<static> {Boolean} $we.string.validIdCard(cardNumber)
验证省份证号码是否有效
Parameters:
{String} cardNumber
身份证号码
Returns:
{Boolean} 是否是正确的身份证号

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Jan 06 2013 19:48:20 GMT+0800 (CST)