草庐IT

OperationSelector

全部标签

Javascript外部作用域变量访问

OperationSelector=function(selectElement){this.selectElement=selectElement;}OperationSelector.prototype.populateSelectWithData=function(xmlData){$(xmlData).find('operation').each(function(){varoperation=$(this);selectElement.append(''+operation.attr("title")+'');});}如何在迭代block中访问OperationSelecto