标签:rip eval 对象 javascrip obj LLC sid aaa tail
var myDog = {
"name":"aaa",
"legs":5,
"tails":20,
"friends": ["sss","ddd"]
};
var testObj = {
"hat": "ballcap",
"shirt": "jersey",
"shoes": "cleats"
};
var hatValue = testObj.hat;
var shirtValue = testObj.shirt;
var testObj = {
"an entree": "hamburger",
"my side": "veggies",
"the drink": "water"
};
var entreeValue=testObj["an entree"];
var drinkValue=testObj["the drink"];
标签:rip eval 对象 javascrip obj LLC sid aaa tail
原文地址:https://www.cnblogs.com/hopewu/p/8783141.html