Unknown JavaScript syntax before for…in

前端 未结 3 1347
慢半拍i
慢半拍i 2020-12-12 00:32

I am reading a book about single-page applications and at some point there is this for...in loop:

KEYVAL:
for(key_name in arg_map){
    if(arg_map.hasOwnProp         


        
3条回答
  •  借酒劲吻你
    2020-12-12 01:04

    It is for break and continue.

    Check the MDN

    https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/label

提交回复
热议问题