updated 细节调整

This commit is contained in:
PASSER-BY 2022-11-12 00:48:22 +08:00
parent 1fd73283f7
commit 9c5a79c94b
4 changed files with 7 additions and 10 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -209,9 +209,7 @@ var prefix = {
for(var key in prefixMap){
for(var selector in prefixMap[key]){
var ids = selector2id(selector);
if(typeof prefix[key]=='undefined'){
prefix[key] = {};
}
prefix[key] = prefix[key]||{};
ids.forEach(function(id){
prefix[key][id] = prefixMap[key][selector];
});

View File

@ -37,13 +37,12 @@ var relationship = function (parameter){
// console.log('[selectors]',from_selectors,to_selectors);
from_selectors.forEach(function(from_selector){
to_selectors.forEach(function(to_selector){
var list = mergeSelector({
mergeSelector({
from:from_selector,
to:to_selector,
sex:options.sex,
optimal:options.optimal
});
list.forEach(function(data){
}).forEach(function(data){
// console.log('[data]',from_selector,to_selector,data);
var ids = data?selector2id(data['selector'],data['sex']):null;
// console.log('[ids]',data['selector'],data['sex'],ids);