默认根命名空间
类
名称空间
成员(Members)
-
<static> customForm
-
自定义表单 require : x.js
-
<static> wizards
-
wizards require : x.js
方法(Methods)
-
<static> add(target, type, listener, useCapture)
-
添加事件监听器 x.event.add 的别名
参数(Parameters):
名称 类型 Argument 描述 target
string 监听对象 type
string 监听事件 listener
string 处理函数 useCapture
string <optional>
监听顺序方式 -
<static> add(target, type, listener, useCapture)
-
移除事件监听器 x.event.remove 的别名
参数(Parameters):
名称 类型 Argument 描述 target
string 监听对象 type
string 监听事件 listener
string 处理函数 useCapture
string <optional>
监听顺序方式 -
<static> add(target, type, listener, useCapture)
-
添加事件监听器
参数(Parameters):
名称 类型 Argument 描述 target
string 监听对象 type
string 监听事件 listener
string 处理函数 useCapture
string <optional>
监听顺序方式 -
<static> call()
-
/* 调用方法或者代码文本
-
<static> camelCase(text)
-
将短划线文字转换至驼峰格式
参数(Parameters):
名称 类型 描述 text
string 文本信息 -
<static> clone() → {object}
-
克隆对象
返回值(Returns):
克隆的对象- 类型(Type)
- object
-
<static> ext(destination, source)
-
将原始对象的属性和方法扩展至目标对象
参数(Parameters):
名称 类型 描述 destination
目标对象 source
原始对象 -
<static> formatNature(text)
-
将字符串统一转换为本地标识标识
参数(Parameters):
名称 类型 描述 text
string 文本信息 -
<static> getEvent(event)
-
/* 获取事件对象, 非IE浏览器的获取事件对象需要在调用方法中传递一个参数 event
参数(Parameters):
名称 类型 描述 event
event 事件对象 -
<static> getFriendlyName(name)
-
将不规范的标识名称转换为友好的名称.
参数(Parameters):
名称 类型 描述 name
string 名称 示例(Example)
// 将路径中的[$./\]符号替换为[-]符号 console.log(x.getFriendlyName(location.pathname));
-
<static> getWindow(html, instance) → {object}
-
获取默认遮罩窗口实例
参数(Parameters):
名称 类型 Argument 描述 html
string 窗口中的Html代码 instance
object <optional>
当前遮罩实例 返回值(Returns):
这张对象- 类型(Type)
- object
-
<static> invoke()
-
执行对象方法
-
<static> isArray()
-
判断对象是否是 Array 类型
-
<static> isFunction()
-
判断对象是否是 Function 类型
-
<static> isString()
-
判断对象是否是 String 类型
-
<static> isUndefined(value, replacementValue)
-
/* 判断是否是 undefined 类型, 如果 undefined 则使用替换的值
参数(Parameters):
名称 类型 描述 value
object 值 replacementValue
string 替换的值 -
<static> noop()
-
空操作
-
<static> paddingZero(number, length)
-
数字补零
参数(Parameters):
名称 类型 描述 number
number 数字 length
number 需要补零的位数 -
<static> query(selector)
-
精确查询单个表单元素。
参数(Parameters):
名称 类型 描述 selector
string 选择表达式 -
<static> query(selector)
-
精确查询单个表单元素。
参数(Parameters):
名称 类型 描述 selector
string 选择表达式 -
<static> query(data, callback)
-
遍历元素对象, 如果需要退出返回 false
参数(Parameters):
名称 类型 描述 data
Object 对象 callback
function 回调函数 -
<static> remove(target, type, listener, useCapture)
-
移除事件监听器
参数(Parameters):
名称 类型 Argument 描述 target
string 监听对象 type
string 监听事件 listener
string 处理函数 useCapture
string <optional>
监听顺序方式 -
<static> require(options)
-
加载脚本
参数(Parameters):
名称 类型 描述 options
object 选项, -
<static> serialize(data)
-
返回数据串行化后的字符串
参数(Parameters):
名称 类型 描述 data
object 表单输入元素的数组或键/值对的散列表 -
<static> toJSON(text)
-
将字符串转换为JSON对象
参数(Parameters):
名称 类型 描述 text
string JSON对象的文本格式 -
<static> toSafeJSON(text)
-
将普通文本信息转换为安全的符合JSON格式规范的文本信息
参数(Parameters):
名称 类型 描述 text
string 文本信息 -
<static> toSafeLike(text)
-
将字符串中特殊字符([%_)转换为可识别的Like内容.
参数(Parameters):
名称 类型 描述 text
string 文本信息 -
<static> type()
-
检查对象类型