[python-chinese] django中html页面动态生成时的记忆功能
Li Chunhui
lich在dhc.com.cn
星期日 四月 29 01:33:49 HKT 2007
¶Ô£¬ÓÃXMLHttpRequest¶ÔÏó´«Êä¡£
----- Original Message -----
From: Samuel Chi
To: python-chinese在lists.python.cn
Sent: Saturday, April 28, 2007 4:00 AM
Subject: Re: [python-chinese]djangoÖÐhtmlÒ³Ãæ¶¯Ì¬Éú³ÉʱµÄ¼ÇÒ书ÄÜ
XMLHttpRequest
ÔÚ07-4-28£¬mvfirst <mvfirst在126.com> дµÀ£º
´ó¼ÒºÃ£º
ÎÒÓÃindex¶¯Ì¬Éú³ÉÒ»¸öÒ³Ãæ£¬¸ÃÒ³ÃæÒªÇóÓû§ÌîдÎı¾¿ò"test"£¨<form>µÈ¾ÍÊ¡ÂÔÁË£©
Èç¹û testÄÚÈݲ»ºÏ¸ñ£¬¾ÍÒªÖØÐÂÐ޸쬵«Ò»µ©µ÷ÓÃHttpResponse(..)£¬¾ÍÓÖ´´½¨ÁËÒ»±ß£¬
´ËʱtestÚ²¾Í»á±»Çå¿Õ£¬¶ø²»ÊÇÉÏ´ÎÓû§ÊäÈëµÄÄÚÈÝÁË¡£
Èç¹ûʹtest±£ÁôÉÏ´ÎÊäÈëµÄÄÚÈÝÄØ£¿µ±È»£¬³ÌÐò¶à×÷Щ´¦Àí¿ÉÒÔʵÏÖ£¬µ«ÊÇ·ñÓмòµ¥µÄ·½·¨
£¿
def index(request):
str_page = """
<table>
<tr><td><input type="text" name="test" value=%s></td></tr>
</table>
"""
return HttpResponse(str_page£©
_______________________________________________
python-chinese
Post: send python-chinese在lists.python.cn
Subscribe: send subscribe to python-chinese-request在lists.python.cn
Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese
------------------------------------------------------------------------------
_______________________________________________
python-chinese
Post: send python-chinese在lists.python.cn
Subscribe: send subscribe to python-chinese-request在lists.python.cn
Unsubscribe: send unsubscribe to python-chinese-request在lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese
-------------- 下一部分 --------------
Ò»¸öHTML¸½¼þ±»ÒƳý...
URL: http://python.cn/pipermail/python-chinese/attachments/20070428/69eef642/attachment.html
关于邮件列表 python-chinese 的更多信息