读书人

Learning Dojo - 7. dojo.data

发布时间: 2012-11-23 22:54:33 作者: rapoo

Learning Dojo -- 7. dojo.data
1. It's reading/writing data, of course

2. Members
a.Attributes
i. data store: get data from data source
ii. data source: some url
iii. item = row
identity = id
label = the "name" of an item (e.g. "companyName = 'IBM' ")
attribute/value = column/value
b.Operations
query = where sql operation
fetch = get data
request = sort/limit

3.4 features
a. Read
b. Write
c. Identity => Random Access by Id
d. Notification => hook the data with events


A widget example

 

读书人网 >Web前端

热点推荐