js for in

来源:互联网 发布:淘宝血滴子买家秀 编辑:程序博客网 时间:2024/06/09 01:46
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"><title>Document</title></head><body><script type="text/javascript">var obj={"MBBindingType":1,"Superscript":"注册送3元","TxtRegisterButton":"立即注册","TxtLoginButton":"立即登录","DescModels":[{"PropertieName":"MBBindingType","PropertieDesc":"手机验证类型"},{"PropertieName":"Superscript","PropertieDesc":"角标文字"},{"PropertieName":"TxtRegisterButton","PropertieDesc":"注册按钮文字"},{"PropertieName":"TxtLoginButton","PropertieDesc":"登录按钮文字"}]};for(var p in obj.DescModels){alert(obj.DescModels[p].PropertieDesc+":"+obj[obj.DescModels[p].PropertieName]);}</script></body></html>

0 0
原创粉丝点击