Methods for Traversing Object Properties and Values in js

  • 2021-07-06 09:37:52
  • OfStack

Examples are as follows:


var Statistics_Website_logo ={
             'Website_logo_title':' Learn and think ',
             'Website_logo_Theme':' Education industry ',
             'Website_logo_Company':' A good future '
   };

for (var Key in Statistics_Website_logo){
      Websitelogo =Websitelogo+'&'+''+Key+'='+Statistics_Website_logo[Key]+'';
    }


Related articles: