extjsの中でいつ使いますか?いつ使いますか?
1310 ワード
extjs js , js 。
JavaScript ( ) , 。
, ({}) :
{
property1:statement,
property2:statement2,
…,
propertyN:statmentN
}
( ),
, n ,
(:) 。
var user={
name:"jack", // name , jack
favoriteColor:["red","green","black","white"],//
hello:function(){ // hello
alert("hello,"+this.name);
},
sex:"male" // sex, sex
}
json , key , ruby ,
。 => : 。
:
[]:
{}:
var obj = [{tmp: "test1 ", tmp1: "test2 "},{tmp: "test3 ", tmp1: "test4 "}];
var obj = new array();
obj[0] = {tmp: "test1 ", tmp1: "test2 "}
obj[1] = {tmp: "test3 ", tmp1: "test4 "}]
転載先:https://www.cnblogs.com/yanni/p/3252938.html