packago javascript module

This commit is contained in:
hustcc
2016-09-26 19:14:09 +08:00
parent 263679051c
commit e31c716f12
10 changed files with 1015 additions and 6 deletions

View File

@@ -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}));
//爸爸的妈妈的老公的儿子的女儿