博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
python web框架企业实战详解(第六期)\第三课时-ajax&jquery&webpy
阅读量:4177 次
发布时间:2019-05-26

本文共 723 字,大约阅读时间需要 2 分钟。

main.py

__author__ = 'Liao'import webimport timeurls = (    '/gettime','gettime',    '/(.*)', 'hello')app = web.application(urls, globals())class gettime:    def GET(self):        asctime=time.asctime()        print asctime        return asctime    def POST(self):        return self.GET()class hello:    def GET(self, name):        if not name:            name = 'World'        return 'Hello, ' + name + '!'if __name__ == "__main__":    app.run()
ajaxrawjs.html

    

this is a ajax rawjs page

static files must be put in static directory in webpy !

用户:
时间:
ajaxjquery.html

    

this is a ajax jquery page

static files must be put in static directory in webpy !

用户:
时间:

转载地址:http://jktai.baihongyu.com/

你可能感兴趣的文章
商务智能-基本方法-数据钻取
查看>>
C++程序员技术需求规划(发展方向)
查看>>
LSTM
查看>>
K-means中K值的选取
查看>>
kmeans优化算法
查看>>
牛客网 构造队列
查看>>
牛客网 跳石板
查看>>
牛客网 最大的奇约数
查看>>
python大坑:AttributeError: 'module' object has no attribute 'Workbook'
查看>>
python 协程
查看>>
在写计算器时学到的
查看>>
小Q的歌单
查看>>
牛客网 计算机网络 选择题及知识点 (1)
查看>>
0-1背包问题
查看>>
TCP-IP详解卷1:协议 学习笔记(5) RARP ICMP
查看>>
Java核心技术 卷I 基础知识 学习笔记(3)
查看>>
TCP-IP详解卷1:协议 学习笔记(6) Ping
查看>>
Java核心技术 卷I 基础知识 学习笔记(4)
查看>>
Java核心技术 卷I 基础知识 学习笔记(5)
查看>>
Java核心技术 卷I 基础知识 学习笔记(6)
查看>>