js中遍历对象的属性和值的方法
时间:2020-10-13 10:07:29|栏目:JavaScript代码|点击: 次
实例如下:
var Statistics_Website_logo ={ 'Website_logo_title':'学而思', 'Website_logo_Theme':'教育行业', 'Website_logo_Company':'好未来' }; for (var Key in Statistics_Website_logo){ Websitelogo =Websitelogo+'&'+''+Key+'='+Statistics_Website_logo[Key]+''; }