Python Web. py interacts with AJAX, and PythonWeb. pyAJAX
If you haven't written a Blog for a long time, you may be lazy or feel that you have written something quite low before, and you are not too eager to write a Blog.
The practical training has already started. I hope that I can improve my thinking level, database, data mining, software development technology, and other aspects in this period. Although a small improvement, I hope to summarize my own unique things to attract more readers.
This time to record something, indeed simple, AJAX use, http://www.w3school.com.cn/ajax/index.asp
Here the W3C tutorial has been very detailed. Examples also contain ASP and PHP, which generally takes less than half an hour for an ordinary person to master, but I still plan to write a Python program to record it. About last year, I saw this term countless times, but I did not implement it myself. Programming or programming language is something that has never been done in person, so it is easy for others to believe in their skills.
-- A small program marks your determination to re-write the BLOG.
Too many problems,
1. Perform a local test on the problem that access involves cross-origin. Therefore, the test is conducted on the SAE.
2. static include static/js/juery-min.js
3,Do not use $ , Use jQuery, $ Conflict with the webpy Template
4. $ in the comment may cause problems!
<! DOCTYPE html>
The Python core code is as follows:
urls = ( '/hello','Hello' ) class Hello: def GET(self): return self.render.ppp() def POST(self): return "true"