BindTools Demo 1

  (Id is ‘name’)

 (Id is ‘birthday’)

  (Id is ‘sex’)

 CM (Id is 'hight)

 (Id is 'teacher_name')

 (Id is 'teacher_phone')

How to Initialize and bind to target Panel?

 1: var data = {
 2: name: "leo",
 3: heigh: 150,
 4: sex: ["male", "female", "female"],
 5: birthday: new Date(1999, 1, 1),
 6: teacher: {
 7: name: "teacher's Name",
 8: phone: "teacher's phone"
 9: }
 10: }
 11: $("#target").bindTool().bindTool("bind", data);

 

How To Get the Json Object from target Panel? 

 1: var jsonObject = $("#target").bindTool("collect");
posted @ 2009-10-29 22:41  沉默的糕点  阅读(208)  评论(0编辑  收藏  举报