首页 › 日存档 › 2009年10月14日

Extjs中JSonStore的操作

I’m trying to get a jsonstore to read in data and parse it. It sounds simple enough, but for whatever reason, I am having a heck of a time doing it. I’ve boiled down my problem to the simplest example I can think of, but I’m still not getting it. Any ideas?

Here is the code. The idea is that when you click on the button, the JSON is parsed and an alert pops up with the name field from the record.

When I step through the code using Firebug, the “each” function on the datastore steps right over the alert, acting as if there are no records. 继续阅读 »