阅读背景:

首先呈现页面,并使用相同的模板HTML通过AJAX更新。

来源:互联网 

Let's say you have a view called "View Story" which is just a web page rendered on the backend via Python/Django. On that page there's a list of comments at the bottom rendered as part of the "View Story" template using Django's templating system (in a loop). This page also allows you to add a comment to the list. This is done through AJAX and the page is updated with the new comment (without sending a new full page request). Let's say you have a view called "View Story" w




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: