hello.
I want to escape 2-Loop.
How do you do label break?
How do you declare outloop , innerloop?
I want to escape 2-Loop.
How do you do label break?
How do you declare outloop , innerloop?
Code:
var outloop; //<=====Is it correct to declare like this?
var innerloop; //<=====Is it correct to declare like this?
$.(#combobox).each( function() //<===== 1-Loop
{
var stage = $.(this).val();
outloop : $.each( ArrayList, function( idx, item ) //<===== 2-Loop
{
innerloop : $.each( item, function( idx2, item2 ) //<===== 3-Loop
{
if ( stage == item2.toString() )
{
var argData =
{
…..
};
$.ajax({ method: “POST”,
url : ……/api/abc.xml,
})
.done( function( data )
{
var value = JSON.parse(data);
});
break outloop;
}
});
});
});