packago javascript module
This commit is contained in:
@@ -2,7 +2,13 @@
|
||||
* BY: haole zheng
|
||||
* http://passer-by.com
|
||||
*/
|
||||
(function(window){
|
||||
!function (root, factory) {
|
||||
if (typeof module === 'object' && module.exports)
|
||||
module.exports = factory();
|
||||
else
|
||||
root.relationship = factory();
|
||||
}(typeof window !== 'undefined' ? window : this,
|
||||
function () {
|
||||
//简写
|
||||
var _filter = [
|
||||
/* 表亲 */
|
||||
@@ -856,8 +862,8 @@
|
||||
return unique(result);
|
||||
}
|
||||
|
||||
window.relationship = relationship;
|
||||
})(window);
|
||||
return relationship;
|
||||
});
|
||||
|
||||
// console.log(relationship({text:'儿子的爸爸的妈妈',sex:1}));
|
||||
//爸爸的妈妈的老公的儿子的女儿
|
||||
|
||||
Reference in New Issue
Block a user