挑个小错,create.html页面 {% block script %}嵌套在{% block body %}中,被渲染两次,由于jquery引入顺序不对会报错 <img width="723" alt="2019-02-01 10 53 16" src="https://user-images.githubusercontent.com/21974123/52100191-73c37680-2611-11e9-8d17-45026517857b.png"> <img width="617" alt="2019-02-01 10 45 14" src="https://user-images.githubusercontent.com/21974123/52100204-82119280-2611-11e9-8b18-a458535e2a8b.png">