jquery each traversal terminates


 

return false; - equivalent to the break effect in javascript.

return true; - equivalent to the continue effect in javascript

 

 

$(view.table.data()).each(function (index,rowdata) {
                                    if (rowdata.id == serverId) {
                                    	 statusCell = view.table.cell(index, "status:name");//Get the status column statusCell
                                         statusCell.data("DELETING");
                                         return false;
                                    }
                                 });

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326130835&siteId=291194637