jquery Extended Binding Events
1 <!DOCTYPE HTML>2 <HTMLLang= "en">3 <Head>4 <MetaCharSet= "UTF-8">5 <title></title>6 </Head>7 <Body>8 <inputtype= "text"ID= "INP"><inputID= "BTN"type= "Submit"value= "Add" />9 <ul>Ten <Li>Content One</Li> One <Li>Content II</Li> A </ul> - <Scriptsrc= "Jquery-1.12.4.js"></Script> - <Script> the - - $(function () { - $('#btn'). Click (function () { + varv= $('#inp'). Val (); - varLi=Document.createelement ('Li'); + li.innerhtml=v; A $('ul'). Append (li); at }); - - $('ul'). On ('Click','Li',function () { - varv= $( This). text (); - v=v+ '+1'; - $( This). Text (v); in }) - }) to + </Script> - </Body> the </HTML>
Django Installation and use installation
Python pip3.5 Install Django
Create Project and App
Create Project
Enter the directory you specified first
Django-admin Startproject MySite
MySite
-MySite (config file)
-urls.py Configuring URL correspondence
-manage.py (Manage project)
-App (CMDB)
-models.py Database operations
-admin.py configuration of Django-brought back-office management
-apps.py the current app configuration
-tests.py Unit test
-views.py do business processing ...
jquery supplement and Django Basic use _day18