Personal tools

Template:TestTemplate: Difference between revisions

From FANTOM5_SSTAR

Jump to: navigation, search
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);


    function getDistinctElements(content) {
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;
     }
     }
for(var i=0, l=result.length; i<l; i++){
var tmp =result[i];
var counted = countItems(content,tmp);
alert(counted);
}





Revision as of 17:37, 11 June 2013