js object 的使用

js object 的使用

var objs = new Object();
objs["name"]="wang";
objs.name="detian";
function objectName()
{
alert(objs["name"]);
alert(objs.name);
}

原文地址:https://www.cnblogs.com/bestsaler/p/1835684.html