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");