English 中文(简体)
Backbone JS, Collection view food for a second when fetching
原标题:Backbone JS, collection view empty for a second when fetching

我将收集工作与OMS的零收集部分联系起来。

When collection fetching data and update the view, the view changed to be EMPTY for a second and then filled with correct HTML. In the collection there are addAll, addOne methods to append list element to the list.

我怎么能ski空,用新的超文本来取代旧的超文本?

问题回答

这就是fetch( work. >。 页: 1 我在您的<代码>addAll 有约束力的活动功能的this.$el.empty(> calls(或类似)。 正在发生的是<代码>$el。 DOM要素为cleaned后。

如果您希望refresh收集,而不是reset,请查询。 页: 1

看见,有些建议将soft Update添入Collection,但被支持人否认。





相关问题
What s the appropriate granularity for Backbone.js Views?

I m adopting Backbone.js to render a small corner of an existing large web app. If this goes well, I can see Backbone.js growing to encompass the whole of the app, lending some much-needed structure ...

Rendering Layouts with Backbone.js

If you were to build a single page web application (SPWA) using Backbone.js and jQuery with--for example--two controllers that each required a unique page layouts, how would you render the layout? ...

Load html without refresh

Im unsure of how to approach this, should I have the html to be loaded hidden or load it from somewhere? I want to load a form in one page, and dynamic content on other pages. The form can be saved ...

Why are my CoffeeScript/backbone.js events not firing?

I m trying to familiarize myself with CoffeeScript and backbone.js, and I must be missing something. This CoffeeScript: MyView = Backbone.View.extend events: { "click" : "testHandler" ...

热门标签