JSLint message: Unused variables
问题 what can I do if JSLint complains about "i" being an unused variable in such a scenario: var items = "<option selected></option>"; $.each(data, function (i, item) { items += "<option value='" + item.Value + "'>" + item.Text + "</option>"; }); (i, item) is the required order of parameters and I'm only using "item". Is there any other solution than tolerating unused variables or rewriting the $.each to use the index, both solutions which I would prefer not to do? Thanks in advance. Update: I