Summary of recent LL from first

2018-09-17  本文已影响0人  彩虹金刚_Q

Haven't updated for quite a while as busying doing some real project and learnt a lot from it

And actually I cannot believe I really did it as both python and JQuery is completely new for me so it is really something need to be recorded

I uploaded my final version(so far still might change you always should be careful to use the word "final version") to Github gist

There are some important part of the whole project 

In Python language

There is request method in Python which make things much easier when you need to handle some simple request with python

Another thing is the json "dumps" and "loads" it is the same thing as JSON.parse & JSON.stringify

OK now we can come to 

The Ajax Magic

In django framework to use ajax you need to add some "fake" url to do data transfer 

For basic knowledge and grammar we can refer to this articel

But what I really what to record is the .done method you can add after $ajax success function and there is also .then method which allows you to custom the order of each function and make it possible to do something without any manually action

As for animation we can also use some callback method in JQuery to make things more smooth

Table in Bootstrap

Bootstrap is a very simple and easy thing we can use which saves us a lot time to write CSS ourselves

And there are many method to select rows and columns with Jquery selector and  tr:eq(N) is a useful one

Still a long way to go, but at least it is a good beginning and a useful practise

my first project

Next step is to learn the test.py in Django and also how to deploy your project on server

上一篇 下一篇

猜你喜欢

热点阅读