Class $we.object
we object方法
Defined in: object.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Method Attributes | Method Name and Description |
---|---|
<static> |
$we.object.getValue(data, path)
根据路径获取object的data
|
<static> |
$we.object.merge(a, b, bCover)
将第二个object的属性merge到第一个object中去
|
Method Detail
<static>
$we.object.getValue(data, path)
根据路径获取object的data
- Parameters:
- {object} data
- Object
- {string} path
- 路径
<static>
{object}
$we.object.merge(a, b, bCover)
将第二个object的属性merge到第一个object中去
- Parameters:
- {object} a
- 需要得到的object
- {object} b
- 需要merge到a里面的object
- {bool} bCover
- 是否覆盖
- Returns:
- {object} a