Tuesday, June 1, 2010

JavaScript Association Array

In JS here's how you loop through association array.

    for (var j in params) {
        alert('key is: ' + j + ', value is: ' + params[j]);
    }


Warning: params.length will always be equal to 0

No comments:

Followers