Template:TestTemplate: Difference between revisions
From FANTOM5_SSTAR
No edit summary |
No edit summary |
||
Line 4: | Line 4: | ||
var content = "</html>{{{1}}}<html>"; | var content = "</html>{{{1}}}<html>"; | ||
var result_tmp = getDistinctElements(count); | |||
for(var i=0, l=result_tmp .length; i<l; i++){ | |||
var tmp =result_tmp [i]; | |||
var counted = countItems(content,tmp); | |||
alert(counted); | |||
} | |||
function getDistinctElements(anArray) { | |||
var result = []; | var result = []; | ||
$.each(anArray, function(i,v){ | $.each(anArray, function(i,v){ | ||
Line 12: | Line 20: | ||
return result; | return result; | ||
} | } | ||
Revision as of 17:37, 11 June 2013